How does Eclipse compile classes with only a JRE?

前端 未结 4 899
忘了有多久
忘了有多久 2020-11-28 08:50

I need to batch a compilation with a special JRE which has been \"customized\".

Eclipse is able to compile the classes with this JRE, but I need to make a build scr

4条回答
  •  無奈伤痛
    2020-11-28 09:13

    I believe Eclipse comes with internal compilers, and you can choose the compatibility to Java 1.3 through 1.6 (check the Preferences menu, under Java->Compiler). So Eclipse doesn't need an external JDK to compile, because it comes with it is self-sufficient.

    If you want to create a build script outside of Eclipse, you're gonna need an external compiler, like the one that comes with the real JDK.

提交回复
热议问题