• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

plz tell me

 
satwant singh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ihve made a class "welcome" it was running on jdk1.3 but last night i installed jdk1.6.0 after unistalling jd1.4 then following error came at run time


Exception in thread "main" java.lang.UnsupportedClassVersionError: welcome
(Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source

then again i install jdk1.4 and set the path
of c:\programfiles\java\jdk1.4\bin;c:\programfiles\java\jdk1.6.0\bin;
then the code run successfully

why so
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
Aum Tao
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not clear from your question whether you had JDK 1.3 of JDK 1.4 initially. This error is usually indicative of the fact that you have more than one java versions involved. You might want to check it with



And, remove any additional JDKs.
 
Campbell Ritchie
Sheriff
Posts: 48386
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And please don't write p-l-z: read this FAQ.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic