NoClassDefFoundError with my jar-application using Oracle JDBC driver
Posted on 2002-03-22
There's an application uses Oracle JDBC driver. When I run it as .class-files thru java <mypackage.myMainClass> it works fine. Now I've made a jar-version of my application. But when I run it as java -jar <myjar> I've got Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
My CLASSPATH is the same and it's correct. I'm not sure there's a problem with my jar file, Oracle JDBC driver or something else.
J2SDK 1.4.0 under Windows XP
Oracle JDBC drivers (versions 8.1.7 and 9.0.1)