JavaRocky
JavaRocky

Reputation: 19903

How do i find out the JDK version Eclipse is using?

I see JRE all over the place, but i can not be sure which JDK is compiling my code. How do i find out?

Upvotes: 23

Views: 82204

Answers (3)

Dhaval D
Dhaval D

Reputation: 1445

You don't find JDK explicitly mentioned anywhere because way to point to a JDK is under the name of 'Installed JRE'. That is Window > Preferences > Java > Installed JREs. This is useful when using m2e plugin.

secondly apart from having it's own built in compiler, it is recommended to you install one of your own to support development of Java programs. Except below from eclipse wiki page :

If you intend to use Eclipse for Java development, then you should install a JDK

Upvotes: 1

Michael Patterson
Michael Patterson

Reputation: 1770

You can still check/set which JDK version you want to compile to. If you go to Window->Preferences, then click "Java" from the menu on the left and then "Compiler". The first setting allows you to see which JDK version is being complied with.

I know this doesn't directly answer your question since JDK isn't actually compiling it, but hopefully it helps!

Upvotes: 34

Alex Jasmin
Alex Jasmin

Reputation: 39496

Actually Eclipse has its own compiler. You can develop java apps using only the JRE and Eclipse

Upvotes: 27

Related Questions