Adam Heath wrote:

On Tue, 13 Nov 2001, Max Kellermann wrote:

Is it planned to support natively compiled .JAR classes which can be loaded 
using custom (pure Java) ClassLoader instances?


gcj supports loading precompiled .class files. gcj supports loading precompiled .jar(and all other variant) files. gcj supports loading .class files. gcj supports loading .jar(and all other variant) files.

To the running java, this is all transparent.  They all look like
normal classes and objects.

Yes, but to answer the question specifically:  Recent versions of gcj
(i.e. not 3.0)  have a gnu.gcj.runtime.SharedLibLoader class.  This
is a ClassLoader that wraps a .so (pre-compiled native shared library).
You could have a servlet engine that compiles a Java or jsp or whatever
to a native shared library as needed, and then loads it using a
SharedLibLoader.

   --Per Bothner






Reply via email to