Wed Nov 1 22:52:58 CET 2006

java.png Hating Java

This is a story about hating Java. If you like Java, stop reading! It's the story about my personal try to get on a Gentoo based PPC machine Java to run.

Firstly, I searched for the JDK (Java Developer Kit) on Sun's java page and IBM's page. Simply they have got no binaries for PPC. You may ask you why I searched for binaries? That's why Java is not free software so I've got no chance to compile anything.

Then I've got a look at the Gentoo ebuilds for the JDKs and figured out why they are masked. Simply, it doesn't exist any PPC binary, so the ebuilds only download x86 and amd64 ones. No surprise.

Secondly, I imaged a free alternative: Blackdown. I even saw that they had got no PPC binary for the latest version(s). But I downloaded the JDK-1.3.0 tarball. And then I tried to execute some binary stuff of it. That seems to work well - let's try the IDE.

I decided to have a try with Eclipse. You must notice that Eclipse was written in Java and it's an IDE for almost everything. I tried to get the installer run:

platinum-iridium eclipse # /tmp/j2sdk1.3/bin/java -Xms40m -Xmx256m -jar \ 
/tmp/eclipse/./startup.jar -os linux -ws gtk -arch ppc \ 
-launcher /tmp/eclipse/./eclipse -name Eclipse -showsplash \ 
600 -exitdata 280007 -vm /tmp/j2sdk1.3/bin/java \ 
-vmargs -Xms40m -Xmx256m -jar /tmp/eclipse/./startup.jar
 
/tmp/j2sdk1.3/bin/ppc/native_threads/java: relocation error:
/tmp/j2sdk1.3/jre/lib/ppc/libjava.so: 
symbol __libc_wait, version GLIBC_2.0 not defined 
in file libc.so.6 with link time reference

You see my problem? My JDK is much older than my latest GNU C Library. What the hell?

But what could be the alternatives? GCJ? GNU Classpath? But Eclipse needs the JDK(!) and the development of an Eclipse installation based on GCJ and GNU Classpath is very alpha... If someone could help - please let me know... (but any hint with proprietary software or emulation will be ignored ;-))


Posted by Sebastian Wieseler | Categories: projects/programming |