Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java/sql/Savepoint Exception

 
Sai Krishna Chitta
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Installed Oracle 9i on my meachine which also having j2sdk1.4. I included ojdbc14.jar(c:\oracle\ora92\jdbc\lib\ojdbc14.jar.) in my CLASSPATH variable. I am using oracle thin driver, using the URL "oracle river:thin:@localhost:1521:Raghu","scott","tiger". The program was compiled. But while running It is throwing an Exception called java.lang.NoClassDefFound:java/sql/Savepoint.

What could be the reason. Please suggest.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Odd. java.sql.SavePoint is part of the JDK (it in rt.jar as of JDK1.4 I think) so its nothing to do with your driver classes. Are you using an old version of the JDK?

[ October 22, 2004: Message edited by: Paul Sturrock ]
[ October 22, 2004: Message edited by: Paul Sturrock ]
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Type java -version on the command prompt to check what version of Java you are running the program with, you may have an older JRE somewhere on your system.

HTH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic