• Advertisement
Sign in to follow this  

[java] Compiling without the JDK?

This topic is 4108 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can eclipse compile my java code without the JDK being installed? I know that this is possible in java 6 but I have only installed JRE 5.0 on my pc.

Share this post


Link to post
Share on other sites
Advertisement
It may have loaded tools.jar, which comes with the JDK - it has a class that can be used to compile Java code. But, AFAIK, this is still dependant of the presence of a javac (i.e, the JDK) on your machine.

Share this post


Link to post
Share on other sites
The Eclipse compiler, as described on the Eclipse JDT Core Component page:

Quote:

An incremental Java compiler. Implemented as an Eclipse builder, it is based on technology evolved from VisualAge for Java compiler. In particular, it allows to run and debug code which still contains unresolved errors.


It needs the JRE to have access to the Java APIs. Eclipse also ships with its own jar, javadoc, and probably other tools.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement