This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
posted
0
"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.
Rahul S
Greenhorn
Joined: Nov 07, 2000
Posts: 5
posted
0
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.
Raghav Mathur
Ranch Hand
Joined: Jan 12, 2001
Posts: 639
posted
0
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.
Raghav.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: ClassNotFound Exception using JWSDK for JSP