Results 1 to 2 of 2
  1. #1
    vaxxx is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default Embedding Mysql to Executable jar file

    I have deployed the java project properly . But i have problem embedding my MySQL database with it. It keep on telling me "no suitable driver found for jdbc:mysql://localhost/humans". please can you give me step by step procedure on how to proceed. Thank you in advance

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default Re: Embedding Mysql to Executable jar file

    You need to supply the mysql connector jar file with your jar file, and reference that jar file in the Manifest of the executable jar.
    This means you would normally supply something like:
    Java Code:
    deploy directory -> your jar file
                     -> lib
                            -> connector.jar
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 30
    Last Post: 02-02-2012, 10:45 AM
  2. create windows executable using executable jar file
    By sarwar1234 in forum New To Java
    Replies: 2
    Last Post: 02-07-2011, 08:29 PM
  3. Executable jar file
    By franklyn@bellsouth.net in forum New To Java
    Replies: 12
    Last Post: 08-26-2010, 01:03 PM
  4. Executable File.
    By BeeGee in forum Advanced Java
    Replies: 13
    Last Post: 05-25-2010, 12:35 PM
  5. Exporting to a executable JAR file
    By Drun in forum Eclipse
    Replies: 4
    Last Post: 03-27-2010, 03:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •