File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Executable Jar File that automatically connects to the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Executable Jar File that automatically connects to the database" Watch "Executable Jar File that automatically connects to the database" New topic
Author

Executable Jar File that automatically connects to the database

Kobe Phenom
Greenhorn

Joined: Sep 03, 2003
Posts: 13
I have a problem on creating an executable jar file that connects to the database. It runs ok when executed within the NetBeans IDE but it doesn't connect to the database when i created a desktop shortcut. Can anyone help me?
Dana Hanna
Ranch Hand

Joined: Feb 28, 2003
Posts: 227
It sounds like a classpath issue. You have to make sure any database drivers are available to the JAR file using the classpath of the current JRE.
Do you have a stack trace of the error, or the error message? - perhaps we could see what is missing.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Executable Jar File that automatically connects to the database
 
Similar Threads
jdbc not connecting when jar double-clicked
This one is beginning to JAR me!!!
how to make jar file for database dependent java application
Problem in creating executable jar (Eclipse)
Imbedded jar file