For what its worth, we use Eclipse Compiler for Java (ecj) all the time 
inside Eclipse.  Look for ecj.jar on the Eclipse SDK download site.  It 
comes as a bundle and has some tacit API that Tomcat, GCJ and others use. 
If you are on Java 6 is also supplies implementations of JSR199 and 269. 
Also, there is a whack of code in/around Eclipse that will compute 
classpaths based on existing bundles.

HTH
Jeff




"Mike Gould" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
08/01/2007 07:06 AM
Please respond to
[EMAIL PROTECTED]; Please respond to
OSGi Developer Mail List <[email protected]>


To
[email protected]
cc

Subject
[osgi-dev] calling javac/JavaCompilerTool within OSGi






Hi,
I'm trying to compile some java code from within an OSGi environment using 
sun.tools.javac but I haven't had much success. Does anyone have any 
experience with this? In particular how to set up the classpath when the 
required resources are in bundles? 

Also does the new JavaCompilerTool in java 6 offer any improvement?

Many Thanks
-- 
- MikeG _______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to