aspose file tools*
The moose likes Beginning Java and the fly likes  plz tell me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " plz tell me" Watch " plz tell me" New topic
Author

plz tell me

satwant singh
Greenhorn

Joined: Dec 02, 2008
Posts: 6
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

Joined: Jan 10, 2002
Posts: 61043
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Aum Tao
Ranch Hand

Joined: Feb 14, 2006
Posts: 210
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.


SCJP 1.4 85%
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38389
    
  23
And please don't write p-l-z: read this FAQ.
 
Consider Paul's rocket mass heater.
 
subject: plz tell me