This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Properties files
- From: Rutger Ovidius <r_ovidius at eml dot cc>
- To: java at gcc dot gnu dot org
- Date: Fri, 24 Sep 2004 18:41:57 -0700
- Subject: Properties files
- Reply-to: Rutger Ovidius <r_ovidius at eml dot cc>
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