Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I've an old machine running Windows XP 32.

Because Oracle dropped support for WXP 32 bits, I've manually installed the jdk following the awesome answer here:

installing JDK8 on Windows XP - advapi32.dll error

I've however not added it yet to the JAVA_PATH, which is set to jdk 6. I don't know if it would harm or not to add it as well, but I want to be conservative here because a lot of programs in this machine need jdk 6. I don't want to break anything working now.

I'd like to toy around in eclipse to test the new Java 8 features. I've manually added the new jre 8 in the "Installed JREs" section under window -> preferences. In the compiler combo, the highest level available is 1.7 (installed jdk7 some time ago, this time using the official installer, but I still keep java 6 as the default in the system). I don't see any option to add the new level.

Consequently, when creating a new project using the new JRE, a warning is shown saying:

The current workspace uses a 1.4 JRE with compiler compliance level 1.6. This is not recommended and either the JRE or the compiler compliance level should be changed.

Seems a problem derived from the manual installation of the JDK.

I'm using Eclipse Kepler v4.3.1, but I have also tested this in older 3.x install with identical results.

Any help will be appreciated.

share|improve this question
2  
See here. Note that this requires Kepler 4.3.2 –  greg-449 Mar 20 '14 at 10:15
    
@greg-449 Why not expand it to an answer? This question may arise quite often these days. –  Marko Topolnik Mar 20 '14 at 10:37

1 Answer 1

up vote 6 down vote accepted

Support for Java 8 in Eclipse Kepler 4.3.2 is described here. This basically says specify

http://download.eclipse.org/eclipse/updates/4.3-P-builds/

as the 'Work with' site on Install New Software and select 'Eclipse Java 8 Support'.

Recent builds of Eclipse 4.4 Luna (since 18 March 2014) have Java 8 support included (but Luna is still under development).

Update: Eclipse Luna (4.4) was released on 25 June 2014

share|improve this answer
    
I did this and got "not applicable to the current configuration" errors -- turned out in readme_eclipse.html I was running version 3.8. I just went back to Java 7 for now. –  Noumenon May 6 '14 at 21:05
2  
@Noumenon There will be no further updates to Eclipse 3.x so you will to move to the Eclipse 4.x series for Java 8. Eclipse 4.4 (Luna) is in the final stages of development and should be released on 25th June 2014. –  greg-449 May 7 '14 at 6:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.