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
# 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
# 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.