Datum: 05.03.2008 18:59
With the introduction of
update-java-alternatives Debian/Ubuntu made it difficult to use manually installed JDKs.
After several attempts to create an appropriate
/usr/lib/jvm/.*.jinfo I detected the need to maintain the files in
update-alternatives --install (See this German article on that issue).
Just one deep breath away from developing some tool collection Google gave me the real answer (hint from 0815user as of November 27th, 2006):
There is a package for converting e.g. Sun's
jdk*linux*.bin "packages" into Debian package, unfortunately nobody seems to know of it ...
Here is a Mini-How-To for making and installing a .deb package for Sun's JDK (as of 1.6.0_05):
~/downloads/jre-6u5-linux-x64.bin. (Be careful to download the
.binpackage, not the damn
apt-get install java-package
cd ~/downloads ; dpkg -i java-package_0.39_all.deb
make-jpkg's still incomplete package name parsing, e.g.
fakeroot make-jpkg jdk-6u5-linux-amd64.bin
sudo dpkg -i sun-j2sdk1.6_1.6.0+update5_amd64.deb
sudo apt-get remove gcj-4.2-base bsh-gcj ant-optional-gcj ant-gcj j2re1.4
make-jpkgseems the lack of an according
/usr/lib/jvm/*.jinfofile. This might help, if you have
j2sdk1.6-sun || sudo
ln -sv /usr/lib/j2sdk1.6-sun .
sudo cat .java-6-sun.jinfo \
|sed -e 's/jvm\/java-6-sun/lib\/j2sdk1.6-sun/' \
|sed -e 's/java-6-sun[0-9\.-]*/j2sdk1.6-sun/' \
|sed -e 's/63/65/' \
sudo chmod 0644
update-java-alternatives --set j2sdk1.6-sunto set at least the most important alternatives links correctly.
Hope this helps ...