This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: MissingResourceException with Date under mingw port
- From: Mark Wielaard <mark at klomp dot org>
- To: Adam King <aking at dreammechanics dot com>
- Cc: java at gcc dot gnu dot org, adam at xwt dot org
- Date: 10 Apr 2002 19:48:58 +0200
- Subject: Re: MissingResourceException with Date under mingw port
- References: <20020410131202.C24689@dreammechanics.com>
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