This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFound Exception using JWSDK for JSP

 
Rahul S
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Ashwin Desai
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic