Ubuntu Java Development Environment JDK installation

Source: Internet
Author: User

1. Download the JDK6 installation package, my 32-bit system so choose Jdk-6u35-linux-i586.bin

:http://www.oracle.com/technetwork/java/javase/downloads/jdk6u35-downloads-1836443.html

2. Unzip the Jdk-6u35-linux-i586.binand extract the jdk-6u35-linux-i586 folder

$ chmod u+x jdk-6u35-linux-i586.bin

$ ./jdk-6u35-linux-i586.bin

3. Copy extract jdk-6u35-linux-i586 folder to /usr/lib

$ sudo mkdir-p/usr/lib/jvm/

$ cp-r jdk-6u35-linux-i586/usr/lib/jvm/jdk-6u35-linux-i586

4. The JDK is installed in this section, and the next step is to configure

To configure environment variables:

Vim ~/.bash.rc 

At the end of the file, save and close the file by adding the following:

Export Java_home=/usr/lib/jvm/jdk-6u35-linux-i586export Jre_home=${java_home}/jreexport CLASSPATH=.:${JAVA_HOME}/ Lib:${jre_home}/libexport Path=${java_home}/bin:${jre_home}/bin: $PATH

Ubuntu Java Development Environment JDK installation

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.