Debian に Oracle Java SE Runtime Environment (JRE) をインストール

はじめに

oracle の jreを java-packageでdeb化する手順のメモです。

java-packageをインストールする

> sudo apt-get install java-package

jreの tar ballをダウンロードする

Oracleのサイト からJava SE Runtime Environmentをダウンロードします。これを書いている時点では、Java SE Runtime Environment 7u67でした。 jre-7u67-linux-x64.tar.gzをダウンロードしました。

make-jpkgを実行する

> fakeroot make-jpkg jre-7u67-linux-x64.tar.gz

上記を実行した結果が以下です。何やら怒られている箇所もありますが、java packageが生成されたようです。

:~% fakeroot make-jpkg jre-7u67-linux-x64.tar.gz           [7231]
Creating temporary directory: /tmp/make-jpkg.FiR8kHtRsd
Loading plugins: /usr/share/java-package/common.sh /usr/share/java-package/javase.sh /usr/share/java-package/jdk-doc.sh /usr/share/java-package/jdk.sh /usr/share/java-package/jre.sh /usr/share/java-package/oracle-jdk-doc.sh /usr/share/java-package/oracle-jdk.sh /usr/share/java-package/oracle-jre.sh

Detected Debian build architecture: amd64
Detected Debian GNU type: x86_64-linux-gnu

Detected product:
    Java(TM) Runtime Environment (JRE)
    Standard Edition, Version 7 Update 67
    Oracle(TM)
Is this correct [Y/n]: y

Checking free diskspace: done.

In the next step, the binary file will be extracted. Probably a
license agreement will be displayed. Please read this agreement
carefully. If you do not agree to the displayed license terms, the
package will not be built.

Press [Return] to continue: 



Testing extracted archive... okay.

Create debian package:
dpkg-buildpackage: source package oracle-java7-jre
dpkg-buildpackage: source version 7u67
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Debian Java Maintainers 
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build package
 debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
   dh_clean
 debian/rules build
dh build
   dh_testdir
   dh_auto_configure
   dh_auto_build
   dh_auto_test
 debian/rules binary
dh binary
   dh_testroot
   dh_prep
   dh_auto_install
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_perl
   dh_link
   debian/rules override_dh_compress
make[1]: Entering directory '/tmp/make-jpkg.FiR8kHtRsd/package'
dh_compress usr/lib/jvm//jre-7-oracle-x64/man/man1/rmid.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/pack200.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/keytool.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/unpack200.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/java.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/tnameserv.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/orbd.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/javaws.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/policytool.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/rmiregistry.1 usr/lib/jvm//jre-7-oracle-x64/man/man1/servertool.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/rmid.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/pack200.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/keytool.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/unpack200.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/java.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/tnameserv.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/orbd.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/javaws.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/policytool.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/rmiregistry.1 usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/servertool.1
usr/lib/jvm//jre-7-oracle-x64/man/man1/rmid.1:	 70.2% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/rmid.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/pack200.1:	 65.1% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/pack200.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/keytool.1:	 72.7% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/keytool.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/unpack200.1:	 57.5% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/unpack200.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/java.1:	 70.1% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/java.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/tnameserv.1:	 70.4% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/tnameserv.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/orbd.1:	 69.5% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/orbd.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/javaws.1:	 65.7% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/javaws.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/policytool.1:	 61.0% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/policytool.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/rmiregistry.1:	 57.7% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/rmiregistry.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/man1/servertool.1:	 66.4% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/man1/servertool.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/rmid.1:	 73.4% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/rmid.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/pack200.1:	 67.1% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/pack200.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/keytool.1:	 76.6% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/keytool.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/unpack200.1:	 58.2% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/unpack200.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/java.1:	 75.7% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/java.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/tnameserv.1:	 72.4% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/tnameserv.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/orbd.1:	 73.2% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/orbd.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/javaws.1:	 69.1% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/javaws.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/policytool.1:	 59.2% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/policytool.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/rmiregistry.1:	 61.4% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/rmiregistry.1.gz
usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/servertool.1:	 69.8% -- replaced with usr/lib/jvm//jre-7-oracle-x64/man/ja_JP.UTF-8/man1/servertool.1.gz
usr/share/doc/oracle-java7-jre/changelog:	 20.1% -- replaced with usr/share/doc/oracle-java7-jre/changelog.gz
make[1]: Leaving directory '/tmp/make-jpkg.FiR8kHtRsd/package'
   dh_fixperms
   dh_strip
   dh_makeshlibs
   debian/rules override_dh_shlibdeps
make[1]: Entering directory '/tmp/make-jpkg.FiR8kHtRsd/package'
dh_shlibdeps --exclude=fxavcodecplugin --exclude=avplugin -lusr/lib/jvm//jre-7-oracle-x64/lib/amd64:usr/lib/jvm//jre-7-oracle-x64/lib/amd64/headless:usr/lib/jvm//jre-7-oracle-x64/lib/amd64/jli:usr/lib/jvm//jre-7-oracle-x64/lib/amd64/server:usr/lib/jvm//jre-7-oracle-x64/lib/amd64/xawt
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 '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'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.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 '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'
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'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.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 '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'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.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'
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 'libnio.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libnio.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libnet.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libnet.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'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libawt.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libawt.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 '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'
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 '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'
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'
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'
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'
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 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.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 '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'
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'
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'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libnet.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libnet.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libawt.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libawt.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 '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'
dpkg-shlibdeps: warning: debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libfontmanager.so contains an unresolvable reference to symbol AWTFontMaxByte1: it's probably a plugin
dpkg-shlibdeps: warning: 17 other similar warnings have been skipped (use -v to see them all)
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libfontmanager.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libfontmanager.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'
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 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.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 'libjvm.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libverify.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libverify.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'
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 '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'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libawt.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libawt.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 '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'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libmawt.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libmawt.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libjli.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libJdbcOdbc.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libJdbcOdbc.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'
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: debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libJdbcOdbc.so contains an unresolvable reference to symbol SQLRowCount: it's probably a plugin
dpkg-shlibdeps: warning: 49 other similar warnings have been skipped (use -v to see them all)
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'
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'
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'
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 'libawt.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libawt.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 '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'
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/bin/javaws was not linked against libnsl.so.1 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libglass.so was not linked against libfontconfig.so.1 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libgstreamer-lite.so debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libjfxmedia.so debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libgstplugins-lite.so debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/fxplugins.so debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libglass.so were not linked against librt.so.1 (they use none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libglass.so was not linked against libatk-1.0.so.0 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libglass.so was not linked against libfreetype.so.6 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libprism-es2.so was not linked against libXxf86vm.so.1 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libglass.so was not linked against libpango-1.0.so.0 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libJdbcOdbc.so was not linked against libJdbcOdbc.so (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libglass.so was not linked against libpangocairo-1.0.so.0 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/oracle-java7-jre/usr/lib/jvm/jre-7-oracle-x64/lib/amd64/libglass.so was not linked against libpangoft2-1.0.so.0 (it uses none of the library's symbols)
make[1]: Leaving directory '/tmp/make-jpkg.FiR8kHtRsd/package'
   dh_installdeb
   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: building package `oracle-java7-jre' in `../oracle-java7-jre_7u67_amd64.deb'.
 dpkg-genchanges -b >../oracle-java7-jre_7u67_amd64.changes
dpkg-genchanges: binary-only upload (no source code included)
 dpkg-source --after-build package
dpkg-buildpackage: binary-only upload (no source included)
    copy oracle-java7-jre_7u67_amd64.deb into directory /home/myname/

The Debian package has been created in the current directory.
You can install the package as root with:

    dpkg -i oracle-java7-jre_7u67_amd64.deb

jre packageのインストール

dpkg -i oracle-java7-jre_7u67_amd64.deb

javaのデフォルトを設定する

sudo update-alternatives --config java                 [7241]
There are 8 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      auto mode
  1            /usr/bin/gij-4.4                                 1044      manual mode
  2            /usr/bin/gij-4.6                                 1046      manual mode
  3            /usr/bin/gij-4.7                                 1047      manual mode
  4            /usr/lib/jvm/j2re1.7-oracle/bin/java             316       manual mode
  5            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
* 6            /usr/lib/jvm/java-6-sun/jre/bin/java             63        manual mode
  7            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      manual mode
  8            /usr/lib/jvm/jre-7-oracle-x64/bin/java           316       manual mode

Press enter to keep the current choice[*], or type selection number: 8
update-alternatives: using /usr/lib/jvm/jre-7-oracle-x64/bin/java to provide /usr/bin/java (java) in manual mode

なんだか、たくさん入っていました。

コメントを残す

メールアドレスが公開されることはありません。

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください