从 Oracle.com 下载并安装 Java 7 发行版非常简单。
但我担心系统上可能缺少任何依赖项。如何找出 Java 安装所需的库?
以前,当我直接从 Debian 存储库安装(过时的)java6 发行版时,我注意到还安装了大量库。所以我猜想 Java 7 可能需要类似的库列表。
以下是 java6 安装的输出:
# apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre
Reading package lists... Done
dependency tree
Reading state information... Done
The following extra packages will be installed:
avahi-daemon bind9-host dbus geoip-database gsfonts gsfonts-x11 java-common libasound2 libavahi-common-data libavahi-common3 libavahi-core7 libbind9-60
libcap2 libdaemon0 libdbus-1-3 libdns69 libfontenc1 libgeoip1 libice6 libisc62 libisccc60 libisccfg62 libltdl7 liblwres60 libnss-mdns libsm6 libx11-6
libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxfont1 libxi6 libxt6 libxtst6 odbcinst odbcinst1debian2 unixodbc x11-common xfonts-encodings xfonts-utils
Suggested packages:
avahi-autoipd dbus-x11 default-jre equivs libasound2-plugins geoip-bin binfmt-support sun-java6-demo openjdk-6-doc sun-java6-source sun-java6-plugin
ia32-sun-java6-plugin sun-java6-fonts ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho
ttf-arphic-uming libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following NEW packages will be installed:
avahi-daemon bind9-host dbus geoip-database gsfonts gsfonts-x11 java-common libasound2 libavahi-common-data libavahi-common3 libavahi-core7 libbind9-60
libcap2 libdaemon0 libdbus-1-3 libdns69 libfontenc1 libgeoip1 libice6 libisc62 libisccc60 libisccfg62 libltdl7 liblwres60 libnss-mdns libsm6 libx11-6
libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxfont1 libxi6 libxt6 libxtst6 odbcinst odbcinst1debian2 sun-java6-bin sun-java6-jdk sun-java6-jre unixodbc
x11-common xfonts-encodings xfonts-utils
0 upgraded, 45 newly installed, 0 to remove and 0 not upgraded.
Need to get 67.7 MB of archives.
After this operation, 191 MB of additional disk space will be used.
Do you want to continue [Y/n]?
...
因此,所有这些都是 java6 所必需的。请告知其中哪些也是 java7 所必需的。我已经收到了一些回复,但我认为这些还不足以回答我的问题。
答案1
您可以使用 oab-java 为 Oracle Java7 创建 apt 存储库。之后,您可以像往常一样使用 apt-get(或 aptitude...)进行安装,它肯定也会提取所需的库。