Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Using JRE 1.8 settings, but JRE remains at 1.4 with compliance 1.7
Using JRE 1.8 settings, but JRE remains at 1.4 with compliance 1.7 [message #1459671] Sun, 02 November 2014 20:00 Go to next message
tgm 1024 is currently offline tgm 1024Friend
Messages: 8
Registered: November 2014
Junior Member
Windows 7 ultimate/64
Version: Kepler Service Release 2 / Build id: 20140224-0627

I have a 1.8 JRE installed in c:\Java64\jre8
c:\Java64\jre8\bin\java -version shows 1.8
c:\Windows\System32\java -version shows 1.8

In eclipse:
Windows->Preferences->Java->Installed JREs has the following checked (only entry):
Name: jre8 (default)
Location: c:\Java64\jre8
Type: Standard VM

But when I create a new java project, the wizard says on the bottom the following warning:
"The current workspace uses a 1.4 JRE with compiler compliance level 1.7. This is not recommended and either the JRE or the compiler compliance level should be changed."

Where is it getting this sense of a 1.4JRE?


No, synchronized method declarations will not get you out of this newbie multithreading pitfall:
thing.set(thing.get() + 1);
Re: Using JRE 1.8 settings, but JRE remains at 1.4 with compliance 1.7 [message #1460657 is a reply to message #1459671] Mon, 03 November 2014 20:13 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1828
Registered: July 2009
Senior Member
Eclipse Kepler had no idea of Java 8 because at that time Java 8 didn't exist; ergo it fails to recognize your JRE.
Please consider upgrading to Luna, which recognizes and supports Java 8.
If you're bound to Kepler then Java 8 support can be installed as described in http://www.eclipse.org/downloads/java8/

best
Stephan
Previous Topic:unable to lunch Calculator on AVD
Next Topic:Eclipse Refuses to Compile Simple Program
Goto Forum:
  


Current Time: Thu Dec 03 20:23:38 GMT 2020

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

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

Back to the top