Reputation: 46606
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 script outside of Eclipse.
What is the method used by Eclipse to generate the .class
files without a JDK?
Upvotes: 34
Views: 19925
Reputation: 1109372
For the case one is interested: Eclipse's compiler is part of JDT core.
Upvotes: 2
Reputation: 206926
Eclipse was originally created by IBM. Eclipse has its own built-in Java compiler which is based on IBM's Java compiler, Jikes.
Upvotes: 0
Reputation: 328760
Eclipse comes with its own compiler for the following reasons:
Upvotes: 48
Reputation: 8087
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.
Upvotes: 5