Can't get Throwable.printStackTrace when statically linked
Fri Nov 22 13:00:00 GMT 2002
Andrew Haley <firstname.lastname@example.org> 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().
More information about the Java