This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "oracle.jdbc.xa.OracleXid" Watch "oracle.jdbc.xa.OracleXid" New topic


Tim Bowman

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.

Paul Sturrock

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

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.

Paul Sturrock

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.
wood burning stoves
subject: oracle.jdbc.xa.OracleXid
Similar Threads
Sun Study Guide
redirect within a servlet
Jar all the servlets?
need MAC address of client machine in servlet