libgcj_bc.so not embedded

Andrew Haley aph@redhat.com
Sat Apr 7 11:07:00 GMT 2007


Mohsen Saboorian writes:
 > 
 > > It's not supposed to be. The idea is that you compile your program
 > > and it dynamically links with the libgcj installed on the system.
 > 
 > Then what happens for example in Windows, where there is no such
 > linkable library. Is it possible to statically link my program with
 > this .so file so that there would be an absolute stand-alone
 > application?
Not quite, but you can link using -static-libgcj. It doesn't work for
all Java programs, and in general it's a bad idea. Why do you want to
do this, anyway?
Andrew.
-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /