Search code examples
javaeclipseidejava-7java-6

Get the JDK version which is eclipse using to compile my current projects


I want to know which JDK is eclipse using to compile my current projects.
Is there a way to know that from eclipse itself.


Solution

  • Eclipse has its own Java compiler, it does not use the JDK compiler.

    The 'Preferences > Java > Compiler' preferences set which language level the Eclipse compiler uses.

    You can also override this for individual projects in the 'Java Compiler' Property page for the project.

    The 'JRE System Library' setting in the 'Java Build Path' properties for a project determine which JRE is used for the Java system library Jar files.