Properties files

Rutger Ovidius r_ovidius@eml.cc
Sat Sep 25 01:42:00 GMT 2004


Hi,
I'm using 4.0 from head.
The .properties files (ie: gnu/regexp/MessagesBundle.properties) are
not in libgcj-4.0.0.jar. Are they supposed to be?
Secondly, on windows the resulting .exe is built static with libgcj.a. These
properties files don't seem to be put into the executable.
How do I get them in there by default?
Sample to try on windows:
import gnu.regexp.RE;
class test {
 public static void main(String[] a) {
 try {
 RE re = new RE("");
 } catch (Exception e) {}
 }
}
gcj --main=test test.java -o a.exe
a.exe
Results in:
java.util.MissingResourceException: Bundle gnu/regexp/MessagesBundle not found
nm a.exe | grep MessagesBundle
<nothing..>
nm libgcj.a | grep MessagesBundle
MessagesBundle.properties.o:
00000000 t __GLOBAL__I_0__datal_gcc_gcc_libjava_gnu_regexp_MessagesBundle.properties_00000000_CCFBE5B1
MessagesBundle_fr.properties.o:
00000000 t __GLOBAL__I_0__datal_gcc_gcc_libjava_gnu_regexp_MessagesBundle_fr.properties_00000000_0FA5D863
Doesn't work linking with -u
__GLOBAL__I_0__datal_gcc_gcc_libjava_gnu_regexp_MessagesBundle.properties_00000000_CCFBE5B1
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 によって変換されたページ (->オリジナル) /