JDK RPM Installation for Linux (32-bit)
Installation Instructions
This procedure installs the Java SE Runtime Environment for 32-bit Linux, using an RPM binary bundle. Some Linux distributions, such as Ubuntu, are not RPM-based. In that event, please see the self extracting installation page.
The name of the downloaded file has the following format:
jdk-6u
<version>-linux-i586-rpm.bin
<version>
jdk-6u18-linux-i586-rpm.bin
To install, download this file and use the following instructions:
1. Download and check the file size.
http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html
You can download to any directory that you can write to.
2. Become root by running the su command and entering the root password.
3. Extract and install the contents of the downloaded file.
Change directory to where the downloaded file is located and run these commands to first set the executable permissions and then run the binary to extract and run the RPM file:
% chmod a+x jdk-6u
<version>-linux-i586-rpm.bin
% ./jdk-6u
<version>-linux-i586-rpm.bin
Note that the initial " ./" is required if you do not have " ." in your PATH environment variable.
The script displays a binary license agreement, which you are asked to agree to before installation can proceed. Once you have agreed to the license, the install script creates and runs the file jdk-6u <version>-linux-i586.rpm in the current directory.
NOTE: If you want to only extract the RPM file but not install it, you can run the .bin file with the -x argument. You do not need to be root to do this.
4. Delete the rpm file if you want to save disk space.
5. Exit the root shell.
6. If you want to use Java within the browser, setup the plugin using the instructions in Manual Plugin Installation for Linux.
The RPM package creates two links: /usr/java/latest and /usr/java/default.
The /usr/java/latest link will always point to the version of Java that is considered the latest version. Subsequent upgrades of the package will overwrite this value if it is not the latest version.
By default, /usr/java/default points to /usr/java/latest. However, if administrators change /usr/java/default to point to another version of Java, subsequent package upgrades will be provided by the administrators and cannot be overwritten.
When the JDK is installed, links to javac, jar, and javadoc are also created apart from the JRE links. These links point to the appropriate tool referenced by /usr/java/default. This allows the user to easily run the default version of these Java tools.
A new service script, named jexec, is added to /etc/init.d. This script allows users to directly execute any standalone JAR file that has an execution permission set. This can be demonstrated using an example from the JDK:
cd /usr/java/jdk1.6.0/demo/jfc/SwingSet2
chmod +x SwingSet2.jar
./SwingSet2.jar
http://www.oracle.com/technetwork/java/javase/install-linux-rpm-137089.html
分享到:
相关推荐
ubuntu安装jdk.docubuntu安装jdk.docubuntu安装jdk.docubuntu安装jdk.doc
Java SE Development Kit 11.0.15.1(jdk-11.0.15.1_linux-x64_bin.rpm) 适用于x64 RPM Package These downloads can be used for development, personal use, or to run Oracle licensed products. Use for other ...
jdk-11.0.15.1(jdk-11.0.15.1_linux-x64_bin.rpm )适用于Linux x64 RPM Package系统:是一款Java 语言的软件开发工具包。JAVA JDK软件是整个Java的核心,不仅操作很简单,而且JAVA JDK有着实用、稳定、安全、高效...
jdk-15.0.1_linux-x64_bin.rpm
jdk-11.0.6_linux-x64_bin.rpmjdk-11.0.6_linux-x64_bin.rpm
jdk-13.0.2_linux-x64_bin.rpmjdk-13.0.2_linux-x64_bin.rpm
jdk-11.0.16.1_linux-x64_bin.rpm
jdk-16.0.1_linux-x64_bin.rpm
jdk-12.0.2_linux-x64_bin.rpm DK是 Java 语言的软件开发工具包,主要用于移动设备、嵌入式设备上的java应用程序。JDK是整个java开发的核心,它包含了JAVA的运行环境(JVM+Java系统类库)和JAVA工具。
jdk-15.0.1_linux-aarch64_bin.rpm
jdk-21_linux-x64_bin.rpm 适用于Linux x86_64位系统
jdk-8.rpm安装包 jdk-8.rpm安装包 jdk-8.rpm安装包 jdk-8.rpm安装包
Java JDK 11.0.8 Linux 64位安装包。北京时间 2018年9 月 26 日,Oracle 官方宣布 Java 11 正式发布。这是 Java 大版本周期变化后的第一个长期支持版本,非常值得关注。从官网即可下载, 最新发布的 Java11 将带来 ...
java jdk-8u111 linux-x64 .rpm 截至2016.11.08 最新版JDK For Linux x64 .rpm sha256: ca27da3b467547400698ae6c7b8aab1c8830e7bd36e1cc06f61c6e9dbcababf7 md5: 27504fb3cbbdaa44945572583663dacd 大小:158.35 MB
jdk-15.0.2_linux-x64_bin.rpm jdk-15.0.2_linux-x64_bin.rpm jdk-15.0.2_linux-x64_bin.rpm
jdk.tools-1.7.jar,解压后放到安装目录下的jdk目录下的lib下面即可。
jdk-16 linux 64位版
CentOS JDK11 安装命令 rpm -ivh jdk-11.0.9_linux-x64_bin.rpm
jdk-11.0.12_linux-x64_bin.rpm
jdk-17_linux-aarch64_bin