On Thu, 27 Jan 2005 17:19:53 -0500, Andrew Overholt <overholt(a)redhat.com> wrote:
* Nick Bargnesi <nbargnesi(a)gmail.com> [2005-01-27 16:55]:
>
> Tried the 3.0.1fc9 RPMs, resulted in:
>
> libgcj failure: Duplicate class registration: java.awt.image.RenderedImage
This is because we've compiled and linked Eclipse with libgcj4's .so but
you're running with gij from the 3.4.x package (which is linked against
libgcj 3.4.x's .so). You just need to set your alternatives to point to
java-1.4.2-gcj4-compat and -devel. See blow:
Even after setting the alternative java and javac, I still see the
RenderedImage gcj failure.
> ECLIPSE_OPTS="$ECLIPSE_OPTS -vm /usr/bin/java"
>
> Unfortunately, that's no good because using the gcj vm is the point
> correct?
Actually, I set it to point to /usr/bin/java so that you can run it with a
proprietary JVM if you want. Are you familiar with the alternatives system
at all? Install java-1.4.2-gcj4-compat (and -devel), and you'll have a
setup similar to a traditional JVM (like any JPackage-style RPM, that is)
with /usr/bin/java, /usr/bin/javac, etc. but built around gcj/gij and ecj
(the Eclipse java compiler). Thus, when running Eclipse we want it to run
with gij. Make sure you set your alternative to java-gcj4-compat and
you'll be set:
su - -c "update-alternatives --set java \
/usr/lib/jvm/jre-1.4.2-gcj4/bin/java"
su - -c "update-alternatives --set javac \
/usr/lib/jvm/java-1.4.2-gcj4/bin/javac"
> I wouldn't know where to look for issues with the gcj vm.
Reporting bugs that occur with gcj and do not occur with a proprietary JVM
(or at least you don't expect them to) helps even if you don't know where
in libgcj/gcj/gij the problem is occurring.
Thanks,
Andrew
Now using the compat jvm, I've walked in a circle.
JVM terminated. Exit code=1
/usr/bin/java
-Xms64M
-Xmx256M
-Dorg.eclipse.core.runtime.ignoreLockFile=true
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dgnu.gcj.precompiled.db.path=/usr/lib/eclipse/eclipse.db
-cp /usr/share/eclipse/startup.jar org.eclipse.core.launcher.Main
-os linux
-ws gtk
-arch x86
-showsplash /usr/share/eclipse/eclipse -showsplash 600
-exitdata /usr/share/eclipse/eclipse -exitdata 5a800b
-data /root/workspace
-vm /usr/bin/java
-vmargs
-Xms64M
-Xmx256M
-Dorg.eclipse.core.runtime.ignoreLockFile=true
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dgnu.gcj.precompiled.db.path=/usr/lib/eclipse/eclipse.db
-cp /usr/share/eclipse/startup.jar org.eclipse.core.launcher.Main
--
Nick Bargnesi
http://www.den-4.com
Den 4 Software
pub 1024D/E8BD2FD0 2004-12-02 Nick Bargnesi <nbargnesi(a)gmail.com>
Key fingerprint = 6F9D 9404 63CD 2B04 DE7A 0F9D A1ED C1B0 E8BD 2FD0
sub 2048g/56C5D45B 2004-12-02
dd if=/dev/zero of=/dev/hda