This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes DataBase Error in Jar File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "DataBase Error in Jar File" Watch "DataBase Error in Jar File" New topic
Author

DataBase Error in Jar File

Raza Shafiq
Greenhorn

Joined: Aug 27, 2012
Posts: 9
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

Joined: Mar 28, 2012
Posts: 859

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

Joined: Aug 27, 2012
Posts: 9
what do you mean by classpath??
Raza Shafiq
Greenhorn

Joined: Aug 27, 2012
Posts: 9
what kind of information sir??
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DataBase Error in Jar File