jump to navigation

Installing JDK 6 Update 10 on debian Lenny November 17, 2008

Posted by maxmil in : Debian,Java , trackback

At the time of writing both the JRE and JDK 6 Update 10 have been released for over a month but are not available on the non-free branch of the official debian testing repositories. I imagine that this is because Lenny is about to go stable and the maintainers are not accepting new versions, only bug fixes.

This is a shame because Update 10 includes a major revamping of client side Java with new look and feels and much improved applets.

Being impatient i wanted to try this out.

Normally to install sun binaries as debian packages i use java-package which nicely prepares a .deb file that i can use dpkg to install. The advantage of this technique is that the new package integrates nicely with the overall system allowing you to use update-alternatives etc.

However, trying this, i found that java-package has not been updated to handle Update 10 either. The problem seems to be that it only works with versions 6 Update X where X is one single digit.

More info can be found here http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504778

For my architecture the solution was to add this to /usr/share/java-package/sun-j2sdk.sh
"jdk-6u10-linux-i586.bin") # SUPPORTED
j2se_version=1.6.0+update10${revision}
j2se_expected_min_size=130
found=true
;;

just after
"jdk-6u"[0-9]"-linux-i586.bin") # SUPPORTED
j2se_version=1.6.0+update${archive_name:6:1}${revision}
j2se_expected_min_size=130
found=true
;;

My architecture is i586, modify this according to yours.

Then, as usuall to prepare, install and set as default.
$ fakeroot make-jpkg jdk-6u10-linux-i586.bin
$ sudo dpkg -i sun-j2sdk1.6_1.6.0+update10_i386.deb
$ sudo update-alternatives java --config

I then wanted to try the new draggable applet feature. So i went to http://java.sun.com/developer/technicalArticles/javase/6u10_applets/ but the demo didn’t work and whats more the page told me that i didn’t have update 10 installed.

However my browser definitely is running the update 10 plugin, as verified on this site.

Could it be because i’m running iceweasel and not firefox?

Comments»

1. Juhos Csaba-Zsolt - November 18, 2008

Hi,

I have created the Debian package in a similar way, but I modified sun-j2sdk.sh somewhat differently.
My problem is that I got a lot of error messages like (while creating the .deb):

dpkg-shlibdeps: warning: couldn’t find library libodbc.so needed by /tmp/make-jpkg.trccDgeIEC/install/usr/lib/j2sdk1.6-sun/jre/lib/i3 86/libJdbcOdbc.so (its RPATH is ‘/usr/lib/j2sdk1.6-sun/jre/lib/i386′).
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: Can’t extract name and version from library name `libjvm.so’
dpkg-shlibdeps: warning: Can’t extract name and version from library name `libjvm.so’
dpkg-shlibdeps: warning: Can’t extract name and version from library name `libjava.so’
dpkg-shlibdeps: warning: Can’t extract name and version from library name `libjava.so’

Is this anything I should be worried about? If yes, how can I fix it?

Thank you,
Csabi

2. maxmil - November 18, 2008

I got similar warnings of type “warning: Can’t extract name and version from library name…”.

I wasn’t watching the build so i can’t be sure but i don’t think that i got the first warning about libodbc.so.

I’m afraid i don’t know whether or not these are important warnings. Maybe the package maintainers mailing list would be a better place for you to ask this.

http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/

3. Juhos Csaba-Zsolt - November 19, 2008

Hi maxmil,

Thanks for your reply. I guess I’ll try the mailing list next.

Thanks again,
Csabi