Installing the JDK environment variable configuration on Linux

Source: Internet
Author: User


jdk:jdk-6u1-linux-i586tomcat:apache-tomcat-7.0.2.tar.gz 1,make Dir/usr/local/java (build Java directory)
2. Upload jdk to Java directory 3,sh jdk-6u1-linux-i586.bin (install JDK) See the installer is asking you whether you honor the License Agreement page, enter, the space can be, read the agreement. A line appears: Do you aggree to the above license terms? The [Yes or No] installer is asking if you would like to comply with the license agreement you have just seen. Of course agree, enter "Y" or "yes" to return.  4, enter at the command line: Vi/etc/profileAdd the following content to the inside

Click (here) to collapse or open

    1. Java_home=/usr/local/java/jdk1.6.0_01
    2. Path= $JAVA _home/bin: $PATH
    3. Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
    4. Export Java_home
    5. Export PATH
    6. Export CLASSPATH
variable to be effective and login again 5. Enter the/usr/bin/directory Cd/usr/binln-s-f/usr/java/jdk1.6.0_01/jre/bin/javaln-s-f/usr/java/jdk1.6.0_01/bin/javac 6. At the command line, enter java-versionScreen Output: java Version "jdk1.6.0_01"Java (TM) 2 Runtime environment, Standard Edition (build jdk1.6.0_01)Java HotSpot (TM) Client VM (build jdk1.6.0_01, mixed mode) 7. Installation JDK1.6 complete.

Installing the JDK environment variable configuration on Linux

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: 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.