Results 1 to 2 of 2
- 07-17-2012, 04:14 PM #1
Member
- Join Date
- Jul 2012
- Posts
- 2
- Rep Power
- 0
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
- 07-17-2012, 05:23 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
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.jarPlease do not ask for code as refusal often offends.
Similar Threads
-
Embedding an external executable inside a Java program
By tnrh1 in forum New To JavaReplies: 30Last Post: 02-02-2012, 10:45 AM -
create windows executable using executable jar file
By sarwar1234 in forum New To JavaReplies: 2Last Post: 02-07-2011, 08:29 PM -
Executable jar file
By franklyn@bellsouth.net in forum New To JavaReplies: 12Last Post: 08-26-2010, 01:03 PM -
Executable File.
By BeeGee in forum Advanced JavaReplies: 13Last Post: 05-25-2010, 12:35 PM -
Exporting to a executable JAR file
By Drun in forum EclipseReplies: 4Last Post: 03-27-2010, 03:16 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks