开发者

javac in Eclipse?

开发者 https://www.devze.com 2023-04-04 08:24 出处:网络
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 jav

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号