aspose file tools*
The moose likes JDBC and the fly likes oracle.jdbc.xa.OracleXid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "oracle.jdbc.xa.OracleXid" Watch "oracle.jdbc.xa.OracleXid" New topic
Author

oracle.jdbc.xa.OracleXid

Tim Bowman
Greenhorn

Joined: Mar 17, 2006
Posts: 5
Hello there,

I was trying to import the oracle.jdbc.xa.Oracle Xid in my code, but it gives the error, The oracle type cannot be resolved. Do I need to add any jars? Any suggestions.

Thanks
Tim.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You'll need to add the jar that contains that class to your classpath. Its part of the driver, so add that.
[ May 19, 2006: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
stephanie coy
Greenhorn

Joined: May 19, 2006
Posts: 5
Hi Paul,

I was getting a similar problem before. Regarding the jar file to be added in the classpath, could you tell me what is that jar and where could I find it.

Thanks
Stephanie
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The jar file is the Oracle JDBC driver. Its called ojdbc14.jar and comes with Oracle when you install it. You can also probably download it from Oracle's website.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: oracle.jdbc.xa.OracleXid