Hello all I am trying to connect to Oracle Database which is on Unix M/c from windows using a jsp file I m using JWSDK But it throws a Runtime Exception on this line of code Class.forName("oracle.jdbc.odbc.OracleDriver"); Exception is :: java.lang.ClassNotFoundException: Unable to load class oracle.jdbc.odbc.OracleDriver I have added the classes111.zip file to the CLASSPATH which contains this class. I then wrote a small .java file with the Connection code with the classes111.zip in the CLASSPATH and this is working fine Can someone help me why the Exception is thrown when run using jwsdk Has anybody experienced any similar problem Rahul
Joined: Jan 07, 1999
"Rahul S", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements. Thanks.
Hi, You will have to add the classes.zip path to the CLASSPATH for the JSWDK. Modify the file "startserver.bat" and append to the classpath. Ashwin.
Joined: Nov 07, 2000
Thanks Ashwin But i hv already done so and still its not working I modified the startserver batch file What other could be the reason Somebody please help :-( Rahul
Originally posted by Ashwin Desai: Hi, You will have to add the classes.zip path to the CLASSPATH for the JSWDK. Modify the file "startserver.bat" and append to the classpath. Ashwin.
Joined: Jan 12, 2001
you are using the wrong name for the driver you are loading ...that's what i think check out what is the correct nameof the driver .....even i,am getting confused right now ...but i think this can be the only prob.