UPDATE: 2013-01-14: Do not install 7u10. See the following post.
Code: Select all
$ fakeroot make-jpkg jre-7u10-linux-x64.tar.gz
...
No matching plugin was found.
With 7u10 [or higher], you need to edit
/usr/share/java-package/oracle-j2re.sh (and/or
oracle-j2sdk.sh, if you have the
jdk).
The scripts are hard-coded to deal with a single-digit update number. Following the other examples, we'll... hard-code them to two digits. :-/ Should be future-proof, anyway. (Edit: ah, this resurrects #
597294 from 2010, and is fixed in
experimental.)
Insert a second
[0-9], for both 32-bit and 64-bit cases, and change the ${archive_name} slice to
6:2
(in the filename, startIndex:length, so
jre-7u10).
Code: Select all
# in oracle-j2re.sh
15 "jre-7u"[0-9][0-9]"-linux-i586.tar.gz") # SUPPORTED
16 j2se_version=1.7.0+update${archive_name:6:2}${revision}
...
31 "jre-7u"[0-9][0-9]"-linux-x64.tar.gz") # SUPPORTED
32 j2se_version=1.7.0+update${archive_name:6:2}${revision}
# similarly "jdk-7u" in oracle-j2sdk.sh
Now it works:
Code: Select all
$ fakeroot make-jpkg jdk-7u10-linux-x64.tar.gz
...
Detected product:
Java(TM) Development Kit (JDK)
Standard Edition, Version 1.7.0+update10
Oracle(TM), Inc.
Is this correct [Y/n]: y
...
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+update10_amd64.deb).
Install and
update-alternatives as above.
Code: Select all
$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)