Properties files

Rutger Ovidius r_ovidius@eml.cc
Tue Sep 28 16:28:00 GMT 2004


Monday, September 27, 2004, 11:40:34 PM, you wrote:
>>>>>> "Rutger" == Rutger Ovidius <r_ovidius@eml.cc> writes:

Rutger>> The .properties files (ie:
Rutger>> gnu/regexp/MessagesBundle.properties) are not in
Rutger>> libgcj-4.0.0.jar. Are they supposed to be?
TT> Yes. Could you file in bugzilla?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17715
Rutger>> Secondly, on windows the resulting .exe is built static with
Rutger>> libgcj.a. These properties files don't seem to be put into
Rutger>> the executable.
Rutger>> How do I get them in there by default?
TT> That's tricky, since the symbols defined in these files are not
TT> referenced by anything and thus are omitted from the link. You can
TT> usually tell the linker to assume that the symbol is undefined, and
TT> this will pull in the code. That's a pain, but it also sums up why
TT> static linking is only half supported.
TT> Tom
I tried using the ld -u option. It includes the symbol (which has a
full pathname from the compile source directory for some reason) and
though the symbol is in the resulting executable, the
MissingResourceException is still present.
nm a.exe | grep MessagesBundle
 U __GLOBAL__I_0__datal_gcc_gcc_libjava_gnu_regexp_MessagesBundle.properties_00000000_CCFBE5B1


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /