Gary Benson writes:
Andrew Haley wrote:
> Gary Benson writes:
> > Peter Backlund wrote:
> > > Is it still possible to build a Java application into a standalone
> > > executable, that does not require gij to run? Is there any guilde
> > > on how to do that?
> >
> > You can use something like:
> >
> > gcj --main=com.foo.bar.Main libbaz.jar.so -o moose
>
> gcj --main=com.foo.bar.Main -lbaz.jar -o moose
Eclipse does what I said to make the ecj executable. What's the
difference?
The right way to link against a shared library is the -lfoo syntax.
Other forms might work.
Andrew.