Installing the Java JDK under Linux

Source: Internet
Author: User

First step: Download the JDK

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Step two: Pass the JDK into the Linux virtual machine/java No, just build one.

You can use the Xftp or RZ commands (which are available in the previous section)

Enter/java after incoming entry

Decompression TAR-ZXVF jdk-8u121-linux-x64.tar.gz

Can be extracted after the jdk-8u121-linux-x64 set soft connection//name too long

Ln-s/JAVA/JDK-8U121-LINUX-X64/JDK//Soft connect name is JDK

Here you can set the environment variables:

Vi/etc/profile//Enter SET environment variable

Add the following code at the end

Save and exit

Use command Source/etc/profile to make environment variables effective immediately

Enter Java-version to see if the Java JDK was successfully installed

If the installation succeeds, the following interface will appear

Installing the Java JDK under Linux

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.