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: MissingResourceException with Date under mingw port


Hi,

On Wed, 2002-04-10 at 19:12, Adam King wrote:
> With the mingw port, I get:
> 
> T:\>datebag
> Exception in thread "main" java.util.MissingResourceException: Bundle gnu.java.locale.Calendar not found
> 
> It runs fine when compiled with the linux target.
> 
> Am I missing a library I should be linking in?  I compiled it with:
>   i686-pc-mingw32-gcj --main=DateBug -o datebug.exe DateBug.java

You will get the same thing on GNU/Linux when compiling with -static.
But you can work around it by setting your CLASSPATH to the libgcj.jar
(e.g. export CLASSPATH=/usr/local/gcc-3.1/share/libgcj.jar or the
equivalent under Windows/Mingw.)
That does defeat the -static a bit, but at least makes your program run.

Cheers,

Mark


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