This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: How to overcome MissingResourceException (gnu.java.locale.Calendar)
- From: Tom Tromey <tromey at redhat dot com>
- To: Martin Egholm Nielsen <martin at egholm-nielsen dot dk>
- Cc: java at gcc dot gnu dot org
- Date: 10 Jun 2004 10:50:32 -0600
- Subject: Re: How to overcome MissingResourceException (gnu.java.locale.Calendar)
- References: <ca98os$5au$1@sea.gmane.org> <ca9slj$sd1$1@sea.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Martin" == Martin Egholm Nielsen <martin@egholm-nielsen.dk> writes:
Martin> // private static Class _c = gnu.java.locale.Calendar.class;
Martin> (after uncommenting the Class-statement)
Martin> Is there a difference between building .java->.o and
Martin> .java->.class->.o?
Yes. There is no way to directly represent "foo.class" in Java
bytecode. Instead Java compilers generate a synthetic method that
uses Class.forName() to find the class. This means that when you
compile the .class to .o, you no longer have a direct reference to the
symbol.
I don't think you said what platform you're on. If you can I highly
recommend using dynamic linking instead of static linking. That will
fix all these difficulties.
Tom