Building projects with the JRE (not the JDK) in Eclipse
Just curious. I noticed in the Eclipse documentation the following:
By default, the JRE used to run the workbench will be used to build and run Java programs. It should appear with a checkmark in the list of installed JREs. We recommend that you use a Java SDK instead of a JRE. An SDK is designed for development and contains the source code for the Java library, easing debugging.
How does this work? Does this mean you can compile code with the JRE? My understanding is that you can only compile using "javac".
Eclipse has its own compiler
Eclipse is a Java app, hence it needs a JRE to run. But it uses its own internal, incremental compiler - ECJ - rather than javac. You can persuade it to use other compilers, but it's rarely worth the effort