public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/2457
@ 2001-09-29 23:16 Bryce McKinlay
  0 siblings, 0 replies; only message in thread
From: Bryce McKinlay @ 2001-09-29 23:16 UTC (permalink / raw)
  To: bryce; +Cc: gcc-prs

The following reply was made to PR libgcj/2457; it has been noted by GNATS.

From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, torsten.rueger@firsthop.com,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, java-prs@gcc.gnu.org
Cc:  
Subject: Re: libgcj/2457
Date: Sun, 30 Sep 2001 18:12:48 +1200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2457&database=gcc
 
 Hi,
 
 The Date class requires access to locale data which is loaded 
 dynamically via Class.forName(). Because they are dynamically loaded the 
 linker can't see the dependency on the resources when static linking - 
 you must explicitly tell it to link it in somehow.
 
 One way to do this is to put declarations like:
 
 static Class calendar = gnu.java.locale.Calendar.class;
 
 in the main class of your application, where "gnu.java.locale.Calendar" 
 is the bundle name reported in the MissingResourceException. You can 
 also add linked options to the gcj command line, but this is generally 
 easier.
 
 regards
 
 Bryce.
 
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-09-29 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-29 23:16 libgcj/2457 Bryce McKinlay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).