Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Compile error after updating Java Build Path to 1.7.0_71 on a Mac (Eclipse Luna)(Java compile error, Eclipse Luna on a Mac)
Compile error after updating Java Build Path to 1.7.0_71 on a Mac (Eclipse Luna) [message #1562901] Wed, 14 January 2015 00:20 Go to next message
Frank Frederick is currently offline Frank FrederickFriend
Messages: 4
Registered: December 2014
Junior Member
I am getting this set of error messages for a code I had written and was working fine previously. But after I changed the JRE build path to 1.7 from 1.6, it no longer compiles/runs and keep showing this message in the console. Please help:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Re: Compile error after updating Java Build Path to 1.7.0_71 on a Mac (Eclipse Luna) [message #1563978 is a reply to message #1562901] Wed, 14 January 2015 14:30 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
somehow you managed to compile your sources to Java 8 class file format, which older VMs reject (or you mistakenly got a 1.8 JRE instead of 1.7).
Check your compiler settings.
Re: Compile error after updating Java Build Path to 1.7.0_71 on a Mac (Eclipse Luna) [message #1564765 is a reply to message #1563978] Thu, 15 January 2015 00:26 Go to previous message
Frank Frederick is currently offline Frank FrederickFriend
Messages: 4
Registered: December 2014
Junior Member
Stephan Herrmann wrote on Wed, 14 January 2015 14:30
somehow you managed to compile your sources to Java 8 class file format, which older VMs reject (or you mistakenly got a 1.8 JRE instead of 1.7).
Check your compiler settings.


Oh my goodness! I didn't see that! Thanks soooo much!
Previous Topic:Source alt+shift+s menu
Next Topic:[ECLIPSE LUNA] Error while trying to install Eclipse GWT plugin
Goto Forum:
  


Current Time: Fri Mar 29 06:52:00 GMT 2024

Powered by FUDForum. Page generated in 0.03102 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top