Can't get Throwable.printStackTrace when statically linked

Adam Megacz gcj@lists.megacz.com
Fri Nov 22 13:00:00 GMT 2002


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().
 - a


More information about the Java mailing list

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