This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Newbie
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Loïc Péron <loic dot peron at bigfoot dot com>, <java at gcc dot gnu dot org>
- Date: Mon, 14 Oct 2002 13:46:34 -0400 (EDT)
- Subject: Re: Newbie
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