javac in Eclipse?
Newbie on eclipse, I have a naive questions.
I have found nowhere in Eclipse to execute the equivalent command line "javac". If I understand well, "run" from the menu of Eclipse processes as javac + java. So my question is: Under Eclipse, how can we compile a .java with "javac" only ? Thanks.
For information, I开发者_JAVA百科 notice this similar post How to run Javac from Eclipse does not answer my question. Mine is to "compile a .java file without running anything"
Well, you can make Eclipse run Ant for you... but normally you just get Eclipse to compile the code for you with its built-in compiler. There's no need for javac.
By default, Eclipse will build every time you save - you don't need to explicitly build at all. When you use "Run" in Eclipse, it doesn't need to compile at that point, because the code has already built.
If you want to find the class files, just look under your output directory.
Eclipse should build your projects automatically so you don't need to call javac
精彩评论