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: How to overcome MissingResourceException (gnu.java.locale.Calendar)


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



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