主页 > 知识库 > 服务器 > Linux/BSD >

ubuntu10.04安装sun jdk6

来源:中国IT实验室 作者:佚名 发表于:2012-11-19 13:29  点击:
1. 下载JDK 地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html,下载jdk-6u33-linux-i586.bin 2. 安装 官网的安装手册如下 [plain] Installation Instructions This procedure installs the Java Development Kit (JDK) for 32-bit
1. 下载JDK
    地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html,下载jdk-6u33-linux-i586.bin
    2. 安装
    官网的安装手册如下
    [plain]
    Installation Instructions
    This procedure installs the Java Development Kit (JDK) for 32-bit Linux, using a self-extracting binary file. The JDK download includes the Java SE Runtime Environment (JRE) – you do not have to download the JRE separately.
    For RPM-based Linux distributions, like Red Hat or SuSE, refer to the RPM installation instructions.
    The name of the downloaded file has the following format:
    jdk-6u<version>-linux-i586.bin
    <version>
    jdk-6u18-linux-i586.bin
    To install, download this file and use the following instructions.
    <span style="font-weight: bold;">1. Download and check the download file size.</span>
    You can download to any directory that you can write to.
    This bundle can be installed by anyone (not only root users), in any location that the user can write to. However, only the root user can displace the system version of the Java platform supplied by Linux.
    <span style="font-weight: bold;">2. Make sure that execute permissions are set</span>
    Run this command:
    % <span style="font-weight: bold; color: rgb(153, 153, 153);">chmod a+x jdk-6u <version>-linux-i586.bin </span>
    <span style="font-weight: bold;">3. Change directory to the location where you would like the files to be installed.</span>
    The next step installs the JDK into the current directory.
    <span style="font-weight: bold;">4. Run the self-extracting binary.</span>
    Execute the downloaded file, prepended by the path to it. For example, if the file is in the current directory, prepend it with " ./" (necessary if " ." is not in the PATH environment variable):
    % <strong><span style="color:#999999;">./jdk-6u <version>-linux-i586.bin</span></strong><span style="color: rgb(102, 102, 102);">
    </span>
    The binary code license is displayed, and you are prompted to agree to its terms.
    The JDK files are installed in a directory called jdk1.6.0_<version> in the current directory. Follow this link to see its directory structure. The JDK documentation is a separate download.
    <strong>5. Delete the bin file if you want to save disk space.</strong>

有帮助
(0)
0%
没帮助
(0)
0%