This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes JDBC Err  while running jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JDBC Err  while running jar file" Watch "JDBC Err  while running jar file" New topic
Author

JDBC Err while running jar file

Mahesh Pinnamaneni
Ranch Hand

Joined: Jul 02, 2004
Posts: 100
Hi All,

I am having an application (in Jar file)which will insert records into oracle DB. this application uses swings.
i am getting an jdbc connection exception when it is used to insert to DB.
i am using eclipse to create a jar file.
pls help me how can we go abt it.
thanks & Regards,
mahesh p
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Post the exception that you are seeing


[My Blog] [JavaRanch Journal]
Mahesh Pinnamaneni
Ranch Hand

Joined: Jul 02, 2004
Posts: 100
I am using the Oracle Driver i.e class.forname(oracle.jdbc.OracleDriver)
and when i run the jar file and tried to save the data, it is not able to establish the connection to Oracle.
Exception: OracleDriver: Class not found exception.

pls help
thanks & regards,
Mahesh P
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
did you double-check that the oracle-driver jar (probably ojdbc14_g.jar) is in your classpath?

regards,
jan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC Err while running jar file
 
Similar Threads
adb
Jar file to be used for DB2 along wit Tomcat
loading JDBC driver from a Jar (not in classpath)
How to create a jar file of a java project that uses Derby database
Web service with a jdbc connection