On Wed, 2005-09-03 at 08:25 +0100, Ralph Henneberger wrote:
> libgcj failure: Duplicate class registration: java.lang.Class
Solution 0:
Make sure you're running java-gnome-2.8.3 . It depends on the current
stable releases of the lib*java series. (See my earlier email).
Solution 1:
Use a real [ie, Sun or IBM] Java VM, not GCJ.
Solution 2:
The actual Java bytecode interpreter from GCJ is "gij", not "gcj".
"gcj" (without -C) means compile to native code.
`which gij` on my system reports
"/usr/i686-pc-linux-gnu/gcc-bin/3.4.3/gij" .
HINT 1: make sure gcc-config is set right.
HINT 2: Be using >=GCC 3.4.3
[Personal opinion: the bias in the examples towards GCJ is premature, in
my opinion. Once GCJ 4 stabilizes, we'll be closer. java-gnome DOES run
under gcj 3.4, however, and the applications I write build under it,
which is awesome. I just don't much care for the error reporting you get
from GCJ. Real Java VMs are cleaner with their compiler errors and
exceptions stacks]
Solution 3:
I think I've seen something like your "Duplicate class" problem. It
happened when when java-gnome was compiled with one version of
GCJ/libgcj, but run against a different version of libgcj If you have
upgraded your GCC (where GCJ comes from) since you last built
java-gnome, re-emerge.
AfC
Sydney
NOTE: libgtkjava-2.6 AND java-gnome-2.10 ARE NOT YET AVAILABLE ON
GENTOO. THEY DEPEND ON GNOME 2.10, WHICH IS GOING INTO THE TREE TODAY.
THEN, AND ONLY THEN, CAN WE RELEASE EBUILDS FOR java-gnome. EVEN THEN,
THEY WILL BE HARD MASKED UNTIL GNOME 2.10 MOVES INTO ~arch.
Give us a couple days, friends. We'll get you there.
|