Thanks Jeff, that's a good idea. I'll have a good look at the eclipse
compiler.

I'm investigating the possibility of porting an existing application which
uses javac into the OSGi world. It does some on the fly code generation and
compilation of individual classes for optimisation purposes. As it's a third
party product I'm keen to know if it can be done without a lot of change.

Cheers
MikeG


On 01/08/07, Jeff McAffer <[EMAIL PROTECTED]> wrote:
>
>
> 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
>



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

Reply via email to