Ask Your Question

How to install Java 8 support in Eclipse Kepler?

asked 2014-05-25 15:22:50 -0500

bgvaughan gravatar image

updated 2014-05-25 15:24:51 -0500

Java 8 has recently been released, and the full suite of java-openjdk-1.8.0 packages are available in the Fedora repositories. Eclipse Kepler is supposed to be able to support Java 8, if the appropriate package is installed from the Eclipse Marketplace: Installing Java 8 Support in Eclipse Kepler SR2

I installed Eclipse Kepler from the Fedora repositories. Installing the Java 8 Support package doesn't seem to have any effect: it's not listed as installed, and I don't have the option listed to build Java projects as 1.8.0. I've successfully installed other packages from the Eclipse Marketplace that weren't available in the Fedora repositories, such as the Lua Development Tools package. My guess is that the other packages I've installed were simpler add-ons that could be installed per user account, but the Java 8 support package requires changes to the core of Eclipse, and thus would need to be installed system-wide by root -- not an option with Eclipse Marketplace.

Is this package likely to make its way to the Fedora repositories any time soon? Is there a simple workaround? Or shall I just write off Java 8 support in Eclipse until the next Fedora release?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-26 22:02:57 -0500

Do you have /usr/java/TO-JDK-8-FOLDER selected in Preference > Java >Installed JRE? You can add any JRE from that screen. And set compiler version to 1.8.

edit flag offensive delete link more


This doesn't seem to work. After adding the path to openjdk1.8.0 and setting it as the default JRE, and installing the Java 8 support plugin, when creating a Java project, I can set it to use openjdk1.8.0 as the JRE, but I cannot set the compiler to 1.8, only to 1.7.

bgvaughan gravatar imagebgvaughan ( 2014-05-26 23:27:22 -0500 )edit

You need javac for setting compiler version. Can you print the output of rpm -qa | grep openjdk? In any case you need to install yum install java-1.8.0-openjdk-devel.

sudhirkhanger gravatar imagesudhirkhanger ( 2014-05-27 00:54:06 -0500 )edit

% rpm -qa | grep openjdk java-1.8.0-openjdk-javadoc- java-1.7.0-openjdk-headless- java-1.8.0-openjdk-headless- java-1.7.0-openjdk-javadoc- java-1.8.0-openjdk-devel- java-1.7.0-openjdk-devel- java-1.8.0-openjdk- java-1.8.0-openjdk-demo- java-1.7.0-openjdk-

bgvaughan gravatar imagebgvaughan ( 2014-05-27 01:39:47 -0500 )edit

I definitely have java-1.8.0-openjdk-devel installed. But, I think that may be irrelevant, as Eclipse uses its own Java compiler, part of the Eclipse JDT package. I believe the update must include an alternate Java compiler.

bgvaughan gravatar imagebgvaughan ( 2014-05-27 02:40:42 -0500 )edit

After you have installed the JRE for Java 8 you should also change the compiler version (Preference> Java> Compiler, or three lines above 'installed JREs'). You can also customize this for each desired project.

kdg1955 gravatar imagekdg1955 ( 2014-05-27 08:02:59 -0500 )edit

Question Tools



Asked: 2014-05-25 15:22:50 -0500

Seen: 3,524 times

Last updated: May 26 '14