Re: [fedora-java] .jar and .so both loaded?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux