Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

export compiler into a runnable jar

843810Feb 28 2010 — edited Mar 2 2010
Hey guys,
I'm not sure about the title... I have an object that uses the JavaCompiler object, which I get:
	private final JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
I tried to export the project which is defined to work with the JRE 1.6 in Eclipse, into a runnable jar, and when I run the jar I get null from the ToolProvider, in Eclipse all work fine and the compiler is there.

How can I use the JRE 1.6 instead of the JDK in my application?

Adam.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2010
Added on Feb 28 2010
4 comments
574 views