Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse and JDK 7

I wish to find out does anyone have problem compiling JDK 7 code with Eclipse? Because currently I only able use JRE 7 in Eclipse to test run but as for trying to use JDK 7 features into my code, it will state it will not support.

like image 420
shh Avatar asked Aug 14 '11 03:08

shh


People also ask

Does Eclipse support Java 7?

The latest release of Eclipse requires a 64-bit JVM, and does not support a 32-bit JVM. Current releases of Eclipse require Java 11 JRE/JDK or newer. A Java Development Kit (JDK) includes many useful extras for Java developers including the source code for the standard Java libraries.

Can I run Eclipse with OpenJDK?

We set OpenJDK as a runtime environment in the Eclipse preferences. To do this, we select „Window → Preferences → Java → Installed JREs → Add … and the path to the bin directory of the JDK. We make sure that this JDK is applied to the execution environment we set.

Does Eclipse use its own JDK?

Eclipse uses externally installed JDKs to run itself (it's written in Java, after all) and to provide the core libraries for the code you write (such as the java. * packages).

How do I add Java 1.7 compiler to Eclipse?

To do this, right click your “cse331” folder and choose “Properties.” In the pane that appears, click on “Java Compiler” (not the drop-down menu, simply click on “Java Compiler”) and click the checkbox to “Enable project specific settings.” Then, under the “Compiler Compliance Level” change this from 1.8 to 1.7.


1 Answers

Eclipse 3.8 M1 (Juno) is the earliest stable version to have support for Java 7. Java 7 support will also be available in the upcoming 3.7.1 release.

Unfortunately, since Java 7 released after Eclipse 3.7 (Indigo) release, the Java 7 support could not make it to 3.7.

like image 159
Deepak Azad Avatar answered Nov 15 '22 00:11

Deepak Azad