error:: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver -


i wrote java program when run it, showing:

java.lang.classnotfoundexception: oracle.jdbc.oracledriver         @ java.net.urlclassloader$1.run(urlclassloader.java:199)         @ java.security.accesscontroller.doprivileged(native method)         @ java.net.urlclassloader.findclass(urlclassloader.java:187)         @ java.lang.classloader.loadclass(classloader.java:289)         @ sun.misc.launcher$appclassloader.loadclass(launcher.java:274)         @ java.lang.classloader.loadclass(classloader.java:235)         @ java.lang.classloader.loadclassinternal(classloader.java:302)         @ java.lang.class.forname0(native method)         @ java.lang.class.forname(class.java:141)         @ lib.dp_connect.connect(dp_connect.java:47)         @ main.agent.main(agent.java:164). 

i see other questions same error , try solutions program doesn't work.

my tests (java version 1.4):

  • use oracle's classpath (export classpath=..../ojdbc14.jar)
  • compile program path of library (java -classpath .:lib/ojdbc14.jar -jar agent.jar, have put library in directory lib)
  • i try more solutions program doesn't work.

i used these on server unix java's version 1.6 ojdbc6.jar , program run.

i don't upgrade server.

thanks
francesco


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -