Install JDK (1.6.0.22) under Fedora14)

Source: Internet
Author: User
Tags worksoft
1, download JDK official website (jdk-6u22-linux-x64.bin: I am 64-bit Fedora14 OH) 2 ,. /jdk-6u22-linux-x64.bin run. /jdk-6u22-linux-x64.bin3, mkdir/worksoft create directory under the root/worksoft directory 4, mvjdk-6u22/worksoft/jdk copy the result of step 1 to the/worksoft directory

1, download JDK official website (jdk-6u22-linux-x64.bin: I am a 64-bit Fedora14 OH)

2./jdk-6u22-linux-x64.bin
Run./jdk-6u22-linux-x64.bin

3. mkdir/worksoft
Create directory/worksoft directory under root

4, music jdk-6u22/worksoft/jdk
Copy the result of step 1 to the/worksoft directory.

5. vi/etc/profile
Configure Environment Variables
Export JAVA_HOME =/worksoft/jdk
Export JAVA_BIN =/worksoft/jdk/bin
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar

6. Establish a connection to replace the default GCJ
Ln-s-f/worksoft/jdk/jre/bin/java
Ln-s-f/worksoft/jdk/bin/javac

7. The configuration is complete. restart the computer.

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.