Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

when i execute a jar file I get OracleDriver error  RSS feed

ros casalini
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a program and I can execute it fine from the commandline by java -classpath c:\ora\;. className
I put all the classfiles into a jar and in the jar and I made sure the mf file had the mainClass stated in it correctly.
When I go to execute it I get the error :
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver.
The way I am trying to execute it is by typing :
java -jar -classpath .;c:\ora\; amcjar.jar
If you have any suggestions please let me know. It would be greatly appreciated.
Thank you,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!