Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataBase Error in Jar File

 
Raza Shafiq
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

i have java project with database runing fine in netbeans but when i create the jar file the data base connection error occur why ??
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you should give us some more information, but I would guess that the DB jar is not on the CLASSPATH.

WP
 
Raza Shafiq
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do you mean by classpath??
 
Raza Shafiq
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what kind of information sir??
 
Paul Clapham
Sheriff
Pie
Posts: 20763
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did the error message say? (Copy and paste it here, don't give us a vague description of it.)

How did you run the jar file? (Copy and paste what you typed at the command line.)

And to answer "what is the classpath" please just go out and find a Java classpath tutorial. Why should we take the time to explain something which every single Java programmer needs to know? There are tutorials out there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic