Can't get Throwable.printStackTrace when statically linked

Andrew Haley aph@redhat.com
Fri Nov 22 13:01:00 GMT 2002


Adam Megacz writes:
 > 
 > Andrew Haley <aph@redhat.com> writes:
 > > > Does anyone know a simple way to ensure that all the classes I need are in
 > > > the executable, or do I just have to add "-u" entries to my link arguments
 > > > whenever I find one missing?
 > 
 > > Yes, you'll have to use "-u" for this.
 > 
 > I solved this problem by putting
 > 
 > private static Class c1 = gnu.gcj.convert.Foo.class;
 > 
 > in the class that contains main().
Indeed, that's also possible. This has the same effect.
Andrew.


More information about the Java mailing list

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