File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataBase Error in Jar File

 
Raza Shafiq
Greenhorn
Posts: 9
  • 0
  • 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
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do you mean by classpath??
 
Raza Shafiq
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what kind of information sir??
 
Paul Clapham
Sheriff
Pie
Posts: 20158
23
MySQL Database
  • 0
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic