Meanwhile there are 3 methods to get icedtea installed:
* java-overlay: uses gcj/classpath to bootstrap icedtea
* geki's overlay: more relaxed, just uses sun-jdk
* updated openjdk-bin from fedora rpms
Now the deprecated part:
---------------------------------------------------------------------------------------------------
Now that Fedora, Ubuntu and Mandriva come with a working 64bit java browser plugin thanks to icedtea I wondered how difficult it would be to run that on Gentoo.
So first I tried compiling it, but LOL icedtea-1.4 needs an older version of itself to compile itself. Now that sounds like a Monty Python classic, really. Fedora simply provides an rpm of an older icedtea, without src.rpm. We would have to bootstrap the old version first, and then compile the new. No idea how to do that in a fashioned way...
So let's install the Fedora binaries. Thx Fedora!
EDIT: ebuild here:
Code: Select all
svn co http://gimpel.ath.cx/svn/gimpel/dev-java/icedtea-bin/get java-1.7.0-icedtea-1.7.0.0-0.19.b21.snapshot.fc8.x86_64.rpm and java-1.7.0-icedtea-plugin-1.7.0.0-0.19.b21.snapshot.fc8.x86_64.rpm from e.g.
http://fedora.tu-chemnitz.de/pub/linux/ ... /Packages/
and
Code: Select all
mkdir /tmp/icedtea
cd /tmp/icedtea
rpm2targz *.rpm
tar xvf *.tar.gz
sudo cp -a ./usr/lib/jvm* /usr/lib64
sudo ln -s /usr/lib64/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/gcjwebplugin.so /usr/share/java-config-2/nsplugin/icedtea-jdk-1.7-javaplugin.so
rm -rf ../icedteaCode: Select all
VERSION="IcedTea JDK 1.7.0"
JAVA_HOME=/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64
JDK_HOME=/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64
JAVAC=${JAVA_HOME}/bin/javac
PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
LDPATH="${JAVA_HOME}/jre/lib/amd64/:${JAVA_HOME}/jre/lib/amd64/native_threads/:
${JAVA_HOME}/jre/lib/amd64/xawt/:${JAVA_HOME}/jre/lib/amd64/server/"
# ^^ NO NEW LINE FOR THIS!! ^^^
PROVIDES_TYPE="JDK JRE"
PROVIDES_VERSION="1.7"
# Taken from sun.boot.class.path property
BOOTCLASSPATH="${JAVA_HOME}/jre/lib/resources.jar:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/jsse.jar:
${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
# ^^ NO NEW LINE FOR THIS!! ^^^
GENERATION="2"
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
VMHANDLE="icedtea-jdk-1.7"
PROVIDES="jdbc-stdext jdbc-rowset"Code: Select all
# eselect java-nsplugin set 64bit icedtea-jdk-1.7
# eselect java-nsplugin list
Available 32-bit Java browser plugins
[1] emul-linux-x86-java-1.6 current
Available 64-bit Java browser plugins
[1] icedtea-jdk-1.7 current
$ java-config-2 -L
The following VMs are available for generation-2:
*) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2) Sun 32bit JRE 1.6.0.03 [emul-linux-x86-java-1.6]
3) IcedTea JDK 1.7.0 [icedtea-jdk-1.7]
4) Sun JDK 1.5.0.13 [sun-jdk-1.5]
5) Sun JDK 1.6.0.03 [sun-jdk-1.6]The best thing is, even that killer java thing http://map24.com works fine! That's known to kill firefox on fedora!
I think I'll hack up an ebuild for this. It's ugly, really. But it works great.
Cheers.






