How can MyEclipse compile Java classes without having a javac?
On my system, I have installed a Sun JRE (not JDK) and MyEclipse IDE.
I ha开发者_开发百科ve searched for javac.exe in the installed files of MyEclipse in Program Files (windows platform), but there I got no results found for javac.exe
.
Which tool is MyEclipse using to compile .java files?
Eclipse includes its very own Java compiler, written by the project from scratch. It doesn't always quite agree with Oracle's compiler in some edge cases. They did this to get speedy incremental compilation. You can even use it from ant in place of the javac if you want to roll that way.
#1: normally you need JDK. JDK mean Java Development Kit which includes the java-compiler javac
#2: Don't get what you really want to ask with the second question?
精彩评论