Ubuntu10.04 install sunjdk6

Source: Internet
Author: User
Tags root access
Ubuntu10.04 install sunjdk61. download JDK address: Required
Ubuntu10.04 install sun jdk6 1. download JDK: JDK. the Installation manual for www.2cto.com is as follows [plain] Installation Instructions This procedure installthe Java Development Kit (JDK) for 32-bit Linux and using a self-extracting binary file. the JDK download nodes des 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 Linux-i586.bin Jdk-6u18-linux-i586.bin To install, download this file and use the following instructions. 1. download and check the download file size. you can download to any directory that you can write. this bundle can be installed by anyone (not only root users), in any location that the user can write. however, only the root user can displace the system version of the Java platform supplied by Linux. 2. make sure that execute permissions are set www.2cto.com Run this command: % chmod a + x jdk-6u -Linux-i586.bin 3. change directory to the location where you wowould like the files to be installed. the next step installthe JDK into the current directory. 4. run the self-extracting binary. execute the downloaded file, prepended by the path to it. for example, if the file is in the current directory, prepend it ". /"(necessary if ". "is not in the PATH environment variable): % /Jdk-6u Linux-i586.bin 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 _ In the current directory. Follow this link to see its directory structure. The JDK documentation is a separate download. 5. Delete the bin file if you want to save disk space.6. If you want to use Java within the browser, setup the plugin using the instructions in Manual Plugin Installation for Linux. Note about Root Access: Installing the software automatically creates a directory called jdk1.6.0 _ . Note that if you choose to install the JDK into a system-wide location such as/usr/local, you must first become root to gain the necessary permissions. if you do not have root access, simply install the Java SE Runtime Environment into your home directory, or a subdirectory that you have permission to write. www.2cto.com Note about Overwriting Files: If you install the software in a directory that contains a subdirectory named jdk1.6.0 _ , The new software overwrites files of the same name in that jdk1.6.0 _ Directory. please be careful to rename the old directory if it contains files you wowould like to keep. note about System Preferences: By default, the installation script configures the system such that the backing store for system preferences is created inside the JDK's installation directory. if the JDK is installed on a network-mounted drive, it and the system preferences can be exported for shari Ng with Java runtime environments on other machines. execute the command chmod a + x jdk-6u33-linux-i586.bin to modify binfile permissions so that they can be executed. Then execute. /jdk-6u33-linux-i586.bin will show subtitles, continue to press the Enter key until the screen appears need to enter yes/no, then enter yes/y press enter, JDK will be decompressed to the current folder, get jdk1.6.0 _ 33. JDK installation is complete. Configure as follows. 3. configure 3.1 configure the environment variable execution: sudo gedit/etc/environment modify the following information in environment: [plain] PATH = "........ :/home/gg/jdk1.6.0 _ 33/bin "CLASSPATH = ".: /home/gg/jdk1.6.0 _ 33/lib "JAVA_HOME ="/home/gg/jdk1.6.0 _ 33 "where/home/gg/is your jdk installation directory 3.2 set java and javac because the default jdk in ubuntu also needs to execute the following code: www.2cto.com [plain] sudo update-alternatives -- install/usr/bin/java/home/gg/jdk1.6.0 _ 33/bin/java 300 sudo update-alternatives -- install /Usr/bin/javac/home/gg/jdk1.6.0 _ 33/bin/javac 300 add the installed JDK to the java menu 3.3 and configure the default jdk to execute the code: sudo update-alternatives -- config java sets the system's default JDK as prompted. 4. test execution: java-version the system shows that java is the recently installed java author gangwazi0525.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.