• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Errors in Executing first jdbc program

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 333
1
Mac Eclipse IDE Safari
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could there be a typo in the class name

oracl.jdbc.driver.OracleDriver
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Always! Wait. Never. Shut up. Look at this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic