How to install oracle java 7 update 11 (jdk-7u11) on debian linux
2013-01-14 Hinterlasse einen Kommentar
Currently you can’t install the new java sdk 7 update 11 from oracle using java_package. Usually you can simply follow this instruction: Installing oracle jre / sdk on debian.
Unfortunately the error is: No matching plugin was found.
But you can modify the script /usr/share/java-package/oracle-j2sdk.sh to accept the new package:
15,16c15,16 < "jdk-7u"[0-9]"-linux-i586.tar.gz") # SUPPORTED < j2se_version=1.7.0+update${archive_name:6:1}${revision} --- > "jdk-7u"[0-9][0-9]"-linux-i586.tar.gz") # SUPPORTED > j2se_version=1.7.0+update${archive_name:6:2}${revision} 31,32c31,32 < "jdk-7u"[0-9]"-linux-x64.tar.gz") # SUPPORTED < j2se_version=1.7.0+update${archive_name:6:1}${revision} --- > "jdk-7u"[0-9][0-9]"-linux-x64.tar.gz") # SUPPORTED > j2se_version=1.7.0+update${archive_name:6:2}${revision}
Worked for me:
The Debian package has been created in the current directory. You can
install the package as root (e.g. dpkg -i oracle-j2sdk1.7_1.7.0+update11_amd64.deb).(#:/tmp)- dpkg -i oracle-j2sdk1.7_1.7.0+update11_amd64.deb
(Reading database … 225711 files and directories currently installed.)
Preparing to replace oracle-j2sdk1.7 1.7.0+update7 (using oracle-j2sdk1.7_1.7.0+update11_amd64.deb) …
Unpacking replacement oracle-j2sdk1.7 …
Setting up oracle-j2sdk1.7 (1.7.0+update11) …(#:/tmp)- java -version
java version „1.7.0_11“
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
There is also a bug report: Bug#698108: jdk7u11 not supported
Edit: also works for java 7 update 12 (jdk-7u12), java 7 update 13 (jdk-7u13), java 7 update 14 (jdk-7u14) and java 7 update 15 (jdk-7u15)
Edit: Oh boy, too many updates recently.