rmic defaults to the default of gcc 3.2, even though java-config is set to /opt/sun-jdk-1.4.1.02. Reproducible: Always Steps to Reproduce: 1. # emerge sun-jdk 2. > which rmic Actual Results: didn't find rmic Expected Results: should've found rmic :P
Im not having enough time to work on gentoo NOW, i can help on these later.
A little workaround for this now its using java-config --exec=rmic. We know that this should be fixed, just helping while it gets fixed.
*** Bug 35490 has been marked as a duplicate of this bug. ***
to resolve this, i think the env.d file java-config generates should generally precede the one of gcc to resolve this problem
The fix should also include rmiregistry: charm root # java-config -L [blackdown-jdk-1.4.1] "Blackdown JDK 1.4.1" (/etc/env.d/java/20blackdown-jdk-1.4.1) * charm root # which rmiregistry /usr/i686-pc-linux-gnu/gcc-bin/3.3/rmiregistry charm root # which rmic /usr/i686-pc-linux-gnu/gcc-bin/3.3/rmic
This bug is intrinsic to gcc compiled with gcj. There's a patch against gcc for this: http://article.gmane.org/gmane.comp.gcc.patches/68352/match=fitzsim+jpackage We should include it, to avoid doing really nasty workarounds.
This is a gcc related issue, but we can keep an eye on it. The toolchain people are better oriented to solve this issue.
gcc-4.0+ renames the utils