MissingResourceException with Date under mingw port
Mark Wielaard
mark@klomp.org
Wed Apr 10 11:11:00 GMT 2002
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
More information about the Java
mailing list