`

ubuntu install jdk.rpm.bin

阅读更多
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
分享到:
评论

相关推荐

    jdk-8.rpm安装包

    如果你的系统不支持,你可能需要安装额外的包管理工具,例如在Debian或Ubuntu上可以使用`alien`来转换RPM包。 1. **安装前的准备**: 在安装JDK之前,检查系统中是否已经存在其他版本的Java,可以通过命令`java -...

    jdk.rar_jdk

    - Linux:通常以.tar.gz或.rpm格式提供,需要解压并使用系统管理工具进行安装,如在Ubuntu上使用`sudo apt-get install default-jdk`。 ### JDK配置说明: 1. **设置环境变量**: - `JAVA_HOME`:指向JDK的安装...

    jdk.rar_jdk linux

    sudo update-alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 100 sudo update-alternatives --config java # 选择所需的版本 ``` 4. 验证安装: 安装完成后,运行`java -version`和`javac ...

    jdk17_linux.zip

    使用`jdk-17_linux-x64_bin.rpm`或`jdk-17_linux-aarch64_bin.rpm`文件。同样在终端中执行以下命令: ```bash sudo rpm -ivh jdk-17_linux-x64_bin.rpm ``` 或 ```bash sudo rpm -ivh jdk-17_linux-aarch64_bin.rpm...

    ubuntu linux软件包安装方法

    本文主要介绍在Ubuntu Linux环境下如何安装两种常见的软件包:`.sh`和`.bin`类型的脚本文件以及`.tar.gz`和`.rpm`类型的软件包。 #### 二、Ubuntu下*.sh和*.bin软件包的安装方法 **1\. *.sh文件的安装方法** 在...

    jdk1.8.linux.zip

    sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_191/bin/javac 1 sudo update-alternatives --config java sudo update-alternatives --config javac ``` 以上就是Linux环境...

    jdk1.6 32位安装包jdk-6u34-linux-i586

    由于我们的JDK是bin文件,这里假设你已经有一个适用于32位系统的RPM包`jdk-6u34-linux-i586.rpm`。如果没有,你需要先下载。然后使用`alien`工具将其转换为DEB包: ```bash sudo alien -i jdk-6u34-linux-i586.rpm `...

    jdk11各平台安装包.zip

    sudo update-alternatives --install /usr/bin/javac javac /path/to/jdk11/bin/javac 1 ``` 最后,设置默认Java版本: ``` sudo update-alternatives --config java ``` 选择刚安装的JDK版本即可。 **3. OpenJDK与...

    linux版本jdk1.7.0_80以及安装步骤.rar

    sudo yum install jdk-7u80-linux-x64.rpm ``` 或者,如果你的系统支持dnf: ``` sudo dnf install jdk-7u80-linux-x64.rpm ``` 2. **验证安装**: 安装完成后,你可以通过以下命令检查JDK是否已成功安装,...

    jdk-8u231-linux-x64.rar

    本文将详细探讨如何在Linux系统中,特别是CentOS和Ubuntu这样的发行版上安装"jdk-8u231-linux-x64.rpm"这个稳定版的Java Development Kit (JDK)。 首先,"jdk-8u231-linux-x64.rar"是一个RAR压缩包文件,它包含了...

    linux下安装jdk,tomcat,mysql.pdf

    1. **下载**:从Oracle官网(目前Sun公司已被Oracle收购)下载适合Linux的JDK安装包,通常有`.bin`和`.rpm`两种格式。 2. **上传**:使用FTP工具将下载的文件上传到Linux服务器的指定目录。 3. **权限修改**:使用`...

    jdk-8u401-linux-x64.tar.gz.7z

    sudo alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_401/bin/javac 1 sudo alternatives --config java ``` 完成这些步骤后,Java环境就配置好了,用户可以在CentOS7上编写、编译和运行Java...

    linux下jdk安装脚本

    首先,我们需要理解Linux的包管理器,如`apt`(Advanced Package Tool)用于Debian系的Ubuntu、Linux Mint等,`yum`或`dnf`(Dandified Yum)用于RPM系的CentOS、Fedora等。这些包管理器能帮助我们轻松安装和管理...

    linux系统下软件安装方法借鉴.pdf

    jdk-6u7-linux-i586.bin,打开终端,用cd 命令进入 jdk 所在目录,执行复制命令sudo cp jdk-6u7-linux-i586.bin /usr 即将 jdk 复制到 /usr 目录下,然后进入 /usr 目录 cd /usr 执行权限chmod +x jdk-6u7-linux-i...

    jdk forliunx的安装包以及详细的安装说明

    请确保选择与你的Linux系统架构匹配的版本,例如,对于64位系统,选择`jdk-版本_number_linux-x64_bin.rpm`或`.tar.gz`文件。 2. **安装步骤**: - **RPM包安装**:如果你的Linux系统支持RPM包(如Fedora、CentOS...

    jdk14个平台安装包.zip

    sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk14/bin/javac 1 sudo update-alternatives --config java ``` 最后,选择你刚安装的JDK版本。 ### 其他平台安装 对于Mac OS或其它...

    Ubuntu16.04安装Oracle11g及配置环境[整理].pdf

    sudo apt-get install openjdk-8-jdk ``` 2. 配置系统环境变量:编辑 /etc/profile 文件,添加以下信息: ``` export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 export JRE_HOME=${JAVA_HOME}/jre export ...

    Linux下安装与卸载jdk

    - 使用 `tar` 命令解压文件,例如 `tar -zxvf jdk-版本号_linux-x64_bin.tar.gz`。 - 配置环境变量,编辑 `~/.bashrc` 或 `~/.bash_profile` 文件,在文件末尾添加以下内容: ```bash export JAVA_HOME=/opt/jdk...

    ubuntu-linux安装intelfortran.pdf

    在Ubuntu Linux系统中安装Intel Fortran编译器的过程可以分为几个关键步骤,本文将详细讲解如何在32位Ubuntu 10.10系统上安装Intel Fortran 2011.3.17版本。Intel Fortran是Intel公司开发的一款高性能的Fortran...

    Ubuntu9.04安装Oracle10G.doc

    # ln -s /usr/bin/rpm /bin/rpm # ln -s /usr/bin/basename /bin/basename # mkdir /etc/rc.d # for i in 0 1 2 3 4 5 6 S; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d; done # ln -s /etc/init.d /etc/rc.d/init....

Global site tag (gtag.js) - Google Analytics