File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Errors in Executing first jdbc program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Errors in Executing first jdbc program" Watch "Errors in Executing first jdbc program" New topic
Author

Errors in Executing first jdbc program

Mohammed Ghouse
Greenhorn

Joined: Jul 26, 2010
Posts: 3
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

Joined: Aug 08, 2003
Posts: 198

Could there be a typo in the class name

oracl.jdbc.driver.OracleDriver
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39784
    
  28
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

Joined: Jul 26, 2010
Posts: 3
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

Joined: Oct 13, 2005
Posts: 39784
    
  28
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

Joined: Jul 26, 2010
Posts: 3
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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Errors in Executing first jdbc program