I have instalalled oracle 9i on my system C:\oracle\... and J2SE in C:\Program Files\Java\jdk1.6.0_07\... when i try to run a simple database connecting program it compiles but on interpreting it gives the error Class def not found error. Is oracle 9i and J2SE compatible with each other. also I have seen my friend PC his Oracle 9i has a "ora 90" folder while i have "ora 92" folder. The enviornment varible setup are:- PATH = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar;C:\oracle\ora92\jdbc\lib\classes12.zip;C:\Program Files\Java\jdk1.6.0_07\bin
Ashoke, You are using Oracle 9i release 2. Your friend is using Oracle 9i release 1. The JDBC driver you use needs to be compatible with JRE 6. You can download such a driver from:
ojdbc6.jar (1,977,267 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types