Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Errors in Executing first jdbc program

 
Mohammed Ghouse
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Every one ,im new in jdbc ,I Need Help i hv install oracle 9i on my system ,im working on winxp, i also want to know path settings for oracle 9i,
Program is compling fine.


Im getting following error while executing
Exception in thread "main" java.lang.UnsupportedClassVersionError: Empdetail (Un
supported major.minor version 49.0)

My program is

Hope i will get reply .
 
David Garratt
Ranch Hand
Posts: 213
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could there be a typo in the class name

oracl.jdbc.driver.OracleDriver
 
Campbell Ritchie
Sheriff
Pie
Posts: 50248
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch. I have edited your post to add code tags and disable smilies; you should use code tags always and disable smilies on this forum.

Which version of Java™ are you using? Enter at the command line, and see whether you are getting 1.5 or greater. The error suggests you are somehow using an older version of Java™. If you get 1.4 or less, you may need to edit your PATH environment variable.
 
Mohammed Ghouse
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you campbell
though i have install jdk1.5 but at command prompt i am getting java version as 1.3 ,what path setting should i set ? please reply
 
Campbell Ritchie
Sheriff
Pie
Posts: 50248
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go through your PATH and delete whatever the reference to Java 1.3 is. Then try again. Oracle has a reputation for installing older versions of Java and adding them to your PATH.
 
Mohammed Ghouse
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what i have in my path variables.I have change so many times but it is not working ,

E:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;"C:\Program Files\Symantec\Norton Ghost 2003\";C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Java\jdk1.5.0\bin;
WHAT SHOULD I DO NEXT ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic