Weblog entry #194 for simonw

Java Update 6u3 in Debian Etch
Posted by simonw on Thu 25 Oct 2007 at 10:28
The latest SUN Java JRE version doesn't work with the java-package in Etch (contrib - currently 0.28) to build your nice shiny SUN debs.

If you want to build Java packages from the latest update, use the java-package v 0.35, which seems to work fine in Etch.

wget http://ftp.uk.debian.org/debian/pool/contrib/j/java-package/java-package_0.35_all.deb
sudo dpkg -i java-package_0.35_all.deb
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=12791

Rename the file to jre-6u3-linux-i586.bin

fakeroot make-jpkg jre-6u3-linux-i586.bin

Remember to run "update-alternative --config java" if you have more than one Java package installed after building and installing the package. I also prefer to purge the old Java packages before installing the new.

Use; "java -version" to check.

Of course there are reasons for all this not working, but for us we just use Java for supporting "ant", and compressing Javascript, and such like, as it is just easier to keep the package versions consistent everywhere, and the chances of subtle breaks due to API changes are almost vanishingly small for us. Roll on the day when it is free software, and I can just apt-get the SUN Java from the core repositories.

 

Comments on this Entry

Posted by Anonymous (62.140.xx.xx) on Thu 25 Oct 2007 at 12:39
Erm... I may be wrong but Java 6 wouldn't be in Etch because version 5 is in Etch.

The non-free thing wouldn't change that as Java 5 is available in the non-free repos for Etch: in fact Etch was when I stopped having to use the make-jpkg thing.

I wonder if 6 is in backports ?

[ Parent | Reply to this comment ]

Posted by simonw (84.45.xx.xx) on Thu 25 Oct 2007 at 18:44
[ Send Message | View Weblogs ]
Doh - I see the whole thing is in the Debian non-free repository, upto date as of the release earlier this week.

I don't have non-free on any boxes normally, and it didn't occur to me to look.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search