dcsimg
sun.tool.javac.SourceClass?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Menderes_GUVEN
Posted On:   Monday, November 19, 2001 04:04 AM

How can I use this class to internally compile java source within my pure java application.

Re: sun.tool.javac.SourceClass?

Posted By:   SRIRAM_SRINIVASAN  
Posted On:   Monday, November 19, 2001 07:22 AM

Hmm. I don't believe there's a class like this.


Try com.sun.tools.javac.Main. The easiest option is to simply invoke the main() method.


One suggestion .. keep the name of the compiler configurable, so that on some platforms you can use jikes or one of the other fast compilers.


-Sriram.

Re: sun.tool.javac.SourceClass?

Posted By:   SRIRAM_SRINIVASAN  
Posted On:   Monday, November 19, 2001 07:21 AM

Hmm. I don't believe there's a class like this.


Try com.sun.tools.javac.Main. The easiest option is to simply invoke the main() method.


One suggestion .. keep the name of the compiler configurable, so that on some platforms you can use jikes or one of the other fast compilers.

-Sriram.

About | Sitemap | Contact