Ask Your Question
0

How to install Java 8 support in Eclipse Kepler?

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

bgvaughan gravatar image

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

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
1

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

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

Comments

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 -0600 )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 -0600 )edit

% rpm -qa | grep openjdk java-1.8.0-openjdk-javadoc-1.8.0.5-1.b13.fc20.noarch java-1.7.0-openjdk-headless-1.7.0.60-2.4.7.0.fc20.x86_64 java-1.8.0-openjdk-headless-1.8.0.5-1.b13.fc20.x86_64 java-1.7.0-openjdk-javadoc-1.7.0.60-2.4.7.0.fc20.noarch java-1.8.0-openjdk-devel-1.8.0.5-1.b13.fc20.x86_64 java-1.7.0-openjdk-devel-1.7.0.60-2.4.7.0.fc20.x86_64 java-1.8.0-openjdk-1.8.0.5-1.b13.fc20.x86_64 java-1.8.0-openjdk-demo-1.8.0.5-1.b13.fc20.x86_64 java-1.7.0-openjdk-1.7.0.60-2.4.7.0.fc20.x86_64

bgvaughan gravatar imagebgvaughan ( 2014-05-27 01:39:47 -0600 )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 -0600 )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 -0600 )edit

Question Tools

2 followers

Stats

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

Seen: 3,521 times

Last updated: May 26 '14