How to overcome MissingResourceException (gnu.java.locale.Calendar)
Martin Egholm Nielsen
martin@egholm-nielsen.dk
Mon Jun 14 07:31:00 GMT 2004
>>> Martin> // private static Class _c = gnu.java.locale.Calendar.class;
>> Well, the final target will be a PPC405 running Linux, but in the
>> transition phase between using IBM's J9 and GCJ, I'm compiling on
>> Windows/Cygwin... But maybe that's not a good idea...
> Why don't you try something like this:
> private static Class _c =
> System.getProperty("java.vendor","").equals("Free Software Foundation,
> Inc.") ? gnu.java.locale.Calendar.class : null;
> You will have to include libgcj-<x.y.z>.jar in classpath when compiling
> to bytecode. But the bytecode should run fine, using a Standard JVM,
> without that jar in its classpath.
That's actually a good hack :-)
Thanks,
Martin
More information about the Java
mailing list