JDK 6.0 on Ubuntu
After hunting around to get JDK6.0 Beta2 on ubuntu working, I found a post on the debian-java mailing list that shows some simple changes to allow java-package to generate a debian package correctly.
http://www.mail-archive.com/debian-java@lists.debian.org/msg10870.html
From the site it is:
Adapting java-package to 6.0 was nothing more than trivial.(1)
# cd /usr/share/java-package
# cp -ax sun-j2sdk1.5 sun-j2sdk6.0(2)
sun-j2sdk.sh is the script that handles the Sun JDK (you know better than me) and it needs only a few tweaking:
# diff -u sun-j2sdk.sh.orig sun-j2sdk.sh
--- sun-j2sdk.sh.orig 2005-04-22 19:33:46.000000000 +0200
+++ sun-j2sdk.sh 2006-05-16 22:01:28.948657750 +0200
@@ -35,6 +35,11 @@
j2se_expected_min_size=130
found=true
;;
+ "jdk-6-beta"*) # EXPERIMENTAL
+ j2se_version=6.0.0+beta-${archive_name:17:2}
+ j2se_expected_min_size=100
+ found=true
+ ;;
esac
;;
"ia64-linux")
Now make-jpkg handles Java 6.0 Mustang binary snapshots as it dows with 5.0 releases.$ fakeroot make-jpkg jdk-6-beta2-bin-b84-linux-i586-11_may_2006.bin
...
$ ls sun*
sun-j2sdk6.0_6.0.0+beta-84_i386.deb
The only changes I had were that I had to change
j2se_version=6.0.0+beta-${archive_name:17:2}
to
j2se_version=6.0.0+beta-${archive_name:10:1}
This was due to me using the jdk-6-beta2-linux-i586.bin binary instead of the one specified in the thread.


Comments
Thx, this worked for me.
Posted by: Jos Dehaes | September 22, 2006 9:27 PM