• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

jar files - classNotFoundException

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You get good luck from rubbing the belly of a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic