Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/Orac
Hi all
so sorry but i have to ask a simple question
i got this error msg when i run my program
Exception in thread"main" java.lang.NoClassDefFoundError: oracle/jdbc/OracleCon
nection
at ConnectionPooling.createConnectionPool(ConnectionPooling.java:124)
at ConnectionPooling.<init>(ConnectionPooling.java:79)
at FillAlerter.<init>(FillAlerter.java:137)
at FillAlerter.main(FillAlerter.java:404)
my classpath have been set to:
C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\Java\jdk1.5.0_11\bin;C:\Program Files\Xinox Software\JCreatorV4LE\MyProjects\TradingAlert\classes;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Slingshot2\SharedDLLs
java_home have been set to:
C:\Program Files\Java\jdk1.5.0_11
kindly assist. thanks :)
[874 byte] By [
peachteaa] at [2007-11-27 5:52:02]

> You should have a file called "classes.zip",
> "classes.jar", "oracle.jar" or something like that
> containing the driver somewhere in your Oracle
> distribution.
> Consult the manual.
yup this is the path
C:\oracle\product\10.2.0\client_1\jdbc\lib
do i add this directory to the env.variables? or is there anything else i need? btw, is the rest of my env.variables path correct?
> It is to put the classes12.jar and ojdbc14.jar to the
> java classpath (C:\Program
> Files\Java\jdk1.5.0_11\bin) right?
Or. classes12.jar or ojdbc14.jar; the first is working for >= Java 1.2, the latter for Java >= 1.4.
So your classpath should contain (among others) e.g.:
C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
> Or. classes12.jar or ojdbc14.jar; the first is
> working for >= Java 1.2, the latter for Java >= 1.4.
> So your classpath should contain (among others)
> e.g.:
>
> C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
hi
i did that before
still got the same problem
Hi guys, am having the same problems, I compiled my program and it complied fine, but when I try to run it after setting the necessary classpath, I get an exception Exception in thread "main" java.lang.NoClassDefFoundError: MyClassname
When I copy the classes12.jar to the current working directory, I get an exception
from the Class.forName statement: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver.
I even t