• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to Load oracle.jdbc.xa.client.OracleXADataSource...

 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


* Edit post
* Report this post
* Reply with quote

Unable to Load oracle.jdbc.xa.client.OracleXADataSource...

Postby hell_storm2004 on Wed Mar 04, 2009 5:41 pm
Hi Everyone,

I am using eclipse to write a JDBC Code. But when I try to load the driver through the command Class.forName("oracle.jdbc.xa.client.OracleXADataSource")
it throws an exception

java.lang.ClassNotFoundException: oracle.jdbc.xa.client.OracleXADataSource
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.b2b.ADE_Connection.JDBC_Connector_b2bdA.main(JDBC_Connector_b2bdA.java:24)

Could you please tell me what to do to solve the problem.... Please help!!!
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The exception is because it cannot find out the classes or you did not add library containing the classes. You need odbc14.jar file to add as a library.

You can download it from



Try this, it will surely work....



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic