The Sun JDK package available in Ubuntu official repository is old. If you’re trying to install the latest JDK (current is jdk-6u13-linux-i586.bin) downloaded from the official website and after installing the latest java-package (current is java-package_0.42.tar.gz), you might get “No matching plugin was found” error at fakeroot make-jpkg jdk-6u13-linux-i586.bin command to create the deb package.
To fix the problem, try following method:
After jave-package installed, it created some .sh files in /usr/share/java-package. There is a sun-j2sdk.sh file we need to edit.
Open this file with your favourite editor and find out this section:
case “${DEB_BUILD_ARCH:-$DEB_BUILD_GNU_TYPE}” in
i386|i486-linux-gnu) # for 64-it, it isia64|ia64-linux-gnu
case “$archive_name” in
…… # here is something about java settings
“jdk-6u”[0-9]“-linux-i586.bin”) # SUPPORTED # This line says just support jdk-6u[0~9]-linux-i586.bin
j2se_version=1.6.0+update${archive_name:6:1}${revision}
j2se_expected_min_size=130
found=true
…..
Add some lines under the section, and make it looks like:
“jdk-6u”[0-9]“-linux-i586.bin”) # SUPPORTED #previous
j2se_version=1.6.0+update${archive_name:6:1}${revision}
j2se_expected_min_size=130
found=true
;;
“jdk-6u”[0-9][0-9]“-linux-i586.bin”) # SUPPORTED #new added
j2se_version=1.6.0+update${archive_name:6:2}${revision}
j2se_expected_min_size=70
found=true
;;
esac
Now, run fakeroot make-jpkg jdk-6u13-linux-i586.bin again and install the new created deb to finish installation.


