File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes jar files - classNotFoundException 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 "jar files - classNotFoundException" Watch "jar files - classNotFoundException" New topic
Author

jar files - classNotFoundException

shilpa reddy
Greenhorn

Joined: Dec 12, 2000
Posts: 29
Hi,
I have been trying to bundle up my application into a jar file using JBuilder 3.5 Deployment wizard. I am working off an Oracle data base and am using a jdbc thin driver.
The problem is that when I try to run the app I get a ClassNotFoundException for oracle.jdbc.driver.OracleDriver.
I have put classes12.zip on the classpath.If I replace the jar file with the class files of my app, without changing the rest of the classpath, the app runs fine.
I have even tried to unzip classes12.zip and added them to the jar file,but this does not help either.
Any suggestions?
Thanks in advance.
Shilpa
shilpa reddy
Greenhorn

Joined: Dec 12, 2000
Posts: 29
An addition to the above post, I can run the jar file by running its class.
I can do this -
java test.jar mainclass
where mainclass is the main class in test.jar
but I get a runtime exception when I do this-
java -jar test.jar.
This is using jdk1.3.
-Shilpa
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar files - classNotFoundException
 
Similar Threads
Apache Tomcat - JDBC error
javax.naming.NamingException- Cannot create resource instance
Getting Invalid Package Error while connecting to Oracle
Jsp and Oracle class12.zip
using oracle thin diver, tomcat 5.5.9