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?
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.
subject: Executable Jar File that automatically connects to the database