Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370537 - When only available JRE is JRE 8 Eclipse fails to mark JavaSE-1.6 and JavaSE-1.7 available
Summary: When only available JRE is JRE 8 Eclipse fails to mark JavaSE-1.6 and JavaSE-...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.8 M6   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 05:39 EST by Mikko Tiihonen CLA
Modified: 2012-02-08 02:52 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikko Tiihonen CLA 2012-02-03 05:39:20 EST
Build Identifier: I20120127-1145

All projects will start to complain errors like:

Build Path Problem: Unbound classpath container: 'JRE System Library [JavaSE-1.6]' in project xyx 


Furthermore in Preferences/Execution Environments it is not possible to explicitly mark jdk8 as compatible with any envirnoment because the Compatible JREs list is empty.



Reproducible: Always

Steps to Reproduce:
1. Install jdk8 from http://jdk8.java.net/download.html
I'm running: Java(TM) SE Runtime Environment (build 1.8.0-ea-b23)
2. Remove all other jdks from Preferences/Installed JREs
3. All projects fail to compile
Comment 1 Ayushman Jain CLA 2012-02-03 05:46:28 EST
We do not support jdk8 yet (and can not unless it is officially released). You can follow bug 358387 to check the progress on that.
Marking this as a dup for now.

*** This bug has been marked as a duplicate of bug 358387 ***
Comment 2 Srikanth Sankaran CLA 2012-02-03 06:03:30 EST
(In reply to comment #1)
> We do not support jdk8 yet (and can not unless it is officially released). You
> can follow bug 358387 to check the progress on that.
> Marking this as a dup for now.

At some point, perhaps well prior to resolution of bug 358387, we may have
to enable support for recognizing and allowing a user to deploy a JDK8 
runtime i.e we will not allow them to create a Java 8 project nor allow any
of the new constructs, but support use of JDK8 with a Java7 or Java6 project
say (with the usual warnings about not being a perfectly matched JRE)
Otherwise, we will impede anyone using eclipse from wanting to test JDK8.
Comment 3 Mikko Tiihonen CLA 2012-02-03 06:20:52 EST
I just noticed I can import a jre execution environment description file.

Could someone point me to an example .ee file that describes standard oracle java7 jdk? Or better yet paste a working example of jdk8.ee here?

http://wiki.eclipse.org/index.php/Execution_Environment_Descriptions

This bug could then be marked as a known issue until initial jdk8 support arrives.
Comment 4 Dani Megert CLA 2012-02-06 03:06:06 EST
We should be able to detect a JRE 8 and recognize it as non-fully compatible with < JREs < 8.
Comment 5 Dani Megert CLA 2012-02-06 11:40:51 EST
Fixed in master: 9e8ee68a849361d270ac520b5e102731ebf064ad
Comment 6 Dani Megert CLA 2012-02-08 02:52:05 EST
Verified in I20120207-0800.