Linux Configuration jdk1.8

Source: Internet
Author: User

Bo Master Original, if you want to reprint please indicate the source

First recommend a remote SSH tool mobaxterm Backup

1. Download JDK1.8 from official website

2. Upload the downloaded tar file to the Linux address,

3. CD to usr folder

  

Create a Java folder under USR

  

4. Copy the JDK compression package to the/usr/java/folder

  

5, to/usr/java/the JDK compressed package decompression

  

  

Unzip successfully.

6. Input Vi/etc/profile Open environment variable configuration variable

  

7. At the end of the file, add

Java_home=/usr/java/jdk1.8.0_11

Path= $JAVA _home/bin: $PATH

Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

Java_home= "Your own JDK decompression path"

8. Press ESC and enter: WQ Exit editor

9. Operationsource /etc/profile使配置文件生效

   

10. Enter Java-version to check if the JDK is configured successfully

  

The results are shown to indicate that the JDK configuration was successful.

Linux Configuration jdk1.8

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.