Sign in to follow this  
Kambiz

[java] Compiling without the JDK?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this