[fedora-java] .jar and .so both loaded?
Andrew Haley
aph at redhat.com
Thu Jul 14 10:24:59 UTC 2005
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.
More information about the fedora-devel-java-list
mailing list