File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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: 860

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: 18150
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataBase Error in Jar File
 
Similar Threads
Using MS ACCESS in a jar file
Problems creating a jar
Ora.jar
JBoss3.0 can't support EJB2.0?
how to make jar file for database dependent java application