2 Replies Latest reply: Mar 15, 2007 12:59 AM by 807606 RSS

    Java fault?why I can run jar file use -classpath/-cp option

      My application used the oracle jdbc lib classes12.jar, but my application jar does not include this lib, so I want to use java -cp or java -classpath to indicate the lib classes12.jar.

      My application jar file is OK, but when I run use java -cp libpath -jar my.jar, its allway say:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

      The libpath I tried many expression, I think has no problem, why can't this run? It's java run time's fault?

      I use jdk 1.5.0_03, please help!