File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes ClassNotFound Exception using JWSDK for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ClassNotFound Exception using JWSDK for JSP" Watch "ClassNotFound Exception using JWSDK for JSP" New topic
Author

ClassNotFound Exception using JWSDK for JSP

Rahul S
Greenhorn

Joined: Nov 07, 2000
Posts: 5
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: 6920
"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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Ashwin Desai
Ranch Hand

Joined: Jul 17, 2000
Posts: 124
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
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: 641
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.
 
 
subject: ClassNotFound Exception using JWSDK for JSP