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

- 15,003
- 4
- 45
- 54
-
1Eclipse has its own Java compiler. – greg-449 Jan 02 '15 at 21:34
-
@greg-449 how to know it? – Shady Mohamed Sherif Jan 02 '15 at 21:37
2 Answers
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.

- 109,219
- 232
- 102
- 145
Open the project and look next to its JRE System Library folder to see the version. For example in one project mine is JDK1.7.0_51. If that does not work, then right click on the project name, select Build Path/Configure Build Path and see the configured JDK version in the window that pops up. Each project can be independently configured to use a different JDK, but one of them is the default and that can be configured in the Configure Build Path app.