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]
# 1
And the Oracle libraries would be where in that?
cotton.ma at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 2
Hierm.. how to check where is the oracle libraries?is this path "C:\oracle\product\10.2.0\client_1\bin" not the one? If not.... how do i check where is the oracle lib?Sorry for the silly qn >.<
peachteaa at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 3
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.
quittea at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 4
Usually they can be found here:/oracle/product/<product version>/libOn Unix which should be similar on Windows
_helloWorld_a at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 5

> 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?

peachteaa at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 6
first of all find the jar which contains driver class used by u, then put that jar on buildpath.
Yogesh.Nandwanaa at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 7
oh i think i saw it while googling before.It is to put the classes12.jar and ojdbc14.jar to the java classpath (C:\Program Files\Java\jdk1.5.0_11\bin) right?hmmm i have done that but still the same error msg :(
peachteaa at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 8

> 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

quittea at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 9

> 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

peachteaa at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 10
ok i got connected to the DBi ddn't set the charset jar file as part of my classpath, after setting it, it works....thanks to those who pointed out to me abt the oracle lib files
peachteaa at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...
# 11

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

exboy1a at 2007-7-12 15:42:08 > top of Java-index,Java Essentials,Java Programming...