tags:

views:

118

answers:

2

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

+2  A: 

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

Alexandre Jasmin
Oh? Could you explain why that is?
JavaRocky
I think the main reason is that unlike javac it can compile files incrementally as you edit them.
Alexandre Jasmin
+1  A: 

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!

Michael Patterson
Thanks for the answer. See my new question. http://stackoverflow.com/questions/2573861/eclipse-crash-course-for-intellij-developer
JavaRocky