This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes java.lang.ClassNotFoundException: oracle.jdbc.oracle.OracleDriver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.lang.ClassNotFoundException: oracle.jdbc.oracle.OracleDriver " Watch "java.lang.ClassNotFoundException: oracle.jdbc.oracle.OracleDriver " New topic
Author

java.lang.ClassNotFoundException: oracle.jdbc.oracle.OracleDriver

isha krishnan
Ranch Hand

Joined: Nov 10, 2008
Posts: 50
Hi l,

i am using Eclipse IDE 3.4.1 and JBOss 5.0 with JDK6. I am facing conncetivity problem.

This is the line added to load particular Oracle Driver. I am Working on Oracle 10g.
The driver for Oracle10g is at location C:\XEClient\jdbc\lib\ojdbc14.jar.

try{
Class.forName("oracle.jdbc.oracle.OracleDriver");
}

This line is giving Classnotfoundexception..

java.lang.ClassNotFoundException: oracle.jdbc.oracle.OracleDriver from BaseClassLoader@e5bef1
............

I have added .jar file to program build path as well added this driver the classpath environment variable.

I also tried to add the driver definition in server alo by adding library to it.

But nothing works.
I am not able to trace the problem.Please look into this problem

Thanks for any contribution in advance




Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874





Isha,
There is no such driver like that. It should be oracle.jdbc.driver.OracleDriver for JDK 1.4 and less , and for recent releases of ojdbc it should be oracle.jdbc.OracleDriver.


Hope that helps.
isha krishnan
Ranch Hand

Joined: Nov 10, 2008
Posts: 50
Thanks for piointing such a silly mistake. Problem is solved now. All i did is changed to (oracle.jdbc.OracleDriver) and palced those ojdbc14.jar in the myapp/webcontent/lib/ojdbc14.jar. I found it from some other blog.

I have one question...
Is XE a defualt SID provided by Oracle10g?



Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


Is XE a defualt SID provided by Oracle10g?


SID is system identifier to a DB , when there are more than one schema available in DB. I understand Oracle XE is product , i m afraid , i dont think of any relations between them.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: oracle.jdbc.oracle.OracleDriver