I downloaded the latest java8 from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html which I believe is the official Java8 release.But my eclipse Luna still displays in its preferences that it is a Beta version This is what I get after I type java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
Is the build version a beta or is it the official one
-
Did you download the latest Eclipse Luna build? Downloading JDK 8 will not change the compiler used in eclipse.Rohit Jain– Rohit Jain2014年03月27日 05:24:44 +00:00Commented Mar 27, 2014 at 5:24
2 Answers 2
The upcoming Luna M7 milestone will have Java 8 support. Prior Luna builds don't have it. You can also add Java 8 support to Kepler SR2.
https://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_For_Kepler
Once installed, you’ll need to tell your projects to use Java 8. First add the JDK to eclipse:
- Go to Window -> Preferences
- Go to Java -> Installed JREs
- Add Standard VM, and point to the location of the JRE
- Then go to Compiler
- Set Compiler compliance level to 1.8
Then tell the project to use JDK 1.8:
- Go to Project -> preferences
- Go to Java Compiler
- Enable project specific settings
- Set Compiler compliance level to 1.8
3 Comments
The b132 and b70 values are build numbers and are the correct values for the release.