This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executable Jar File that automatically connects to the database

 
Kobe Phenom
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 227
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic