http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55716
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-17 10:20:36 UTC --- Created attachment 28983 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28983 diff There is no rt.jar present anywhere in either the non-working or working case. As an experiment, the java_hacks way described above doesn't work (gcj/gij in that case is from GCC 4.7, only new classes are the copied ones from the 4.8 tree, but as the experiment with installing libgcj 4.8 showed, even when all classes are from 4.8, it doesn't work either), but if I instead copy the files from 4.7-rh tree (i.e. replace all ../../libjava/ prefixes with /usr/src/gcc-4.7-rh/libjava/ ), then it works correctly. I'm attaching diff in between java_hacks directory which doesn't work and java_hacks2 which does work. Beyond those changes the Messages.properties from 4.7 have just been renamed to messages.properties. >From this, I guess the only important changes are to javah/Main.java.