Newbie

Jeff Sturm jsturm@one-point.com
Mon Oct 14 10:47:00 GMT 2002


On Mon, 14 Oct 2002, Andrew Haley wrote:
> =?ISO-8859-1?Q?Lo=EFc=5FP=E9ron?= writes:
>  > Well, what I want to achive is a win32 stand alone java-written
>  > application using bytecode libraries and a native launcher that
>  > does not rely on anything else than it's own binary libraries.
>
> gcj will allow you to write something like that.  If you look at the
> source code for gij you should be able to figure out how to do it.

Unless I misunderstand, doesn't libgcj's Class.forName() take care of
that?

I did something similar once, compiling a servlet container (Jetty) with
gcj.  Jetty loads servlets as bytecode from its own classloader (or
CLASSPATH).  No code modifications were required (except one
tiny hack to work around a gcj parser bug).

Jeff



More information about the Java mailing list