Subj : GCJ + Rhino To : netscape.public.mozilla.jseng From : Andy Madigan Date : Wed Aug 25 2004 12:50 am I've been trying to use GCJ to compile Rhino natively (so that, for instance, a natively compiled app could expose Java APIs to a script, which would be useful for many purposes.) I've had a few problems thus far: 1: org.mozilla.javascript.classfile.ClassFileWriter cannot be compiled, however, I was able to compile a shared object anyway by removing any classes that referenced to ClassFileWriter directly. 2: GCJ-compiled apps cannot dynamically load any classes compiled by jsc with optlevel > 0, workaround is to use optlevel 0. While I'm fairly sure these are both problems with GCJ, I was wondering if anyone had found a better workaround for either problem. Note: The shared object I created is missing most of the optimizer package, but not all of it, parts of the package (particularly OptRuntime) are referenced by classes compiled with jsc, I found this out when I tried to natively compile one such class (I was eventually able to do that, BTW). I would really like to be able to get the Optimizer working, since that would decrease the overhead of running a script multiple times (I think). ===== .