This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't get Throwable.printStackTrace when statically linked


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]