Problem with environment variables

JAVA_HOME = C:\JBuilder9\jdk1.4

Path = C:\oracle\product\10.1.0\Db_1\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;.;C:\oracle1\product\10.1.0\Db_3\jdbc\lib\classes12.zip

When I run foo.java I get this error, which i believe is because of some kind

of problem with environment variables.

Exception in thread"main" java.lang.NoClassDefFoundError: OraThin

I eliminated this path

C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin

just to check whether two paths of jdk bin folder is causing problem but I see no change.

Please help

[748 byte] By [ali_hammada] at [2007-11-26 14:41:38]
# 1

I had solved it myself

I am a genious :P

Just do this

JAVA_HOME = C:\JBuilder9\jdk1.4

CLASSPATH = C:\oracle\product\10.1.0\Db_1\jdbc\lib\classes12.zip;.;%JAVA_HOME%\bin

PATH= C:\oracle\product\10.1.0\Db_1\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;.;C:\oracle1\product\10.1.0\Db_3\jdbc\lib\classes12.zip;%JAVA_HOME%\bin

ali_hammada at 2007-7-8 8:23:03 > top of Java-index,Desktop,Runtime Environment...
# 2

> I had solved it myself

>

> I am a genious :P

>

> Just do this

>

> JAVA_HOME = C:\JBuilder9\jdk1.4

>

> CLASSPATH =

> C:\oracle\product\10.1.0\Db_1\jdbc\lib\classes12.zip;.;%JAVA_HOME%\bin

>

Actually, there is no reason to include %JAVA_HOME%\bin in the CLASSPATH unless you plan to put CLASS hierarchies into the bin folder - probably a bad idea. It should work fine without it - you DO need %JAVA_HOME%\bin in the Path.

atmguya at 2007-7-8 8:23:03 > top of Java-index,Desktop,Runtime Environment...
# 3
By the way, I appreciate that you worked out the answer yourself and had the good manners to post the answer. I am sure others will appreciate it as well.
atmguya at 2007-7-8 8:23:03 > top of Java-index,Desktop,Runtime Environment...