Even though the recent changes in Sun's licensing, for distributing the jdk as a package, allows Ubuntu to provide prepackaged jdk's, I couldn't find a package for my Dapper install. On the dutch Ubuntu forums there was someone asking for a package for jdk 6u2, so I decided to give him a hand. This is the procedure that will work on Dapper, Edgy and Feisty: sudo apt-get install java-package now edit: gksudo gedit /usr/share/java-package/sun-j2sdk.sh search this section: "jdk-1_5_0_" [ 0-9 ][ 0-9 ] "-linux-i586.bin" ) # SUPPORTED j2se_version= 1 . 5 . 0+update ${archive_name : 10 : 2 } j2se_expected_min_size= 130 found= true ;; esac ;; make it look like this: "jdk-1_5_0_" [ 0-9 ][ 0-9 ] "-linux-i586.bin" ) # SUPPORTED j2se_version= 1 . 5 . 0+update ${archive_name : 10 : 2 } j2se_expected_min_size= 130 found= true ;; "jdk-6u" [ 0-9 ] "-linux-i586.bin" ) # SUPP...