aspose file tools*
The moose likes Java in General and the fly likes Trying to run programs with java 1.4.2_07 after upgrading Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Trying to run programs with java 1.4.2_07 after upgrading Eclipse" Watch "Trying to run programs with java 1.4.2_07 after upgrading Eclipse" New topic
Author

Trying to run programs with java 1.4.2_07 after upgrading Eclipse

Snay It
Greenhorn

Joined: Jun 15, 2005
Posts: 4
Hi All,
I'm using Eclipse version 3.1.0 and java 5.0 (1.5.0_03). I changed the JRE of a program back to 1.4.2_07, but when i try to run it i get this:

Exception in thread "main" java.lang.UnsupportedClassVersionError: controller/Controller (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)


My java build path's JRE is 1.4.2_07 and in Run i selected the same JRE, so it's not a compatibility problem, i guess.

Regards,
snayit
Ashish Chopra
Ranch Hand

Joined: Nov 30, 2004
Posts: 134
Hi

Possibly the old class files still exist. Go to project --> clean, and clean the files and do a rebuild.

Also check the java sdk that u have mentioned in the preferences-->java-->installed jre's, if the right version is checked.

Hope i could help!


Quis Custodiet Ipsos Custodes<br /> <br />My blog: <a href="http://www.coherentrambling.blogspot.com" target="_blank" rel="nofollow">http://www.coherentrambling.blogspot.com</a>
 
 
subject: Trying to run programs with java 1.4.2_07 after upgrading Eclipse
 
Similar Threads
Unsupported Class Version Error
Strange Problem in Running Jar!
Starting Websphere 6.0 in Eclipse3.3
Hi , Iam ananya new to java tech,
tzupdater help