Installing JDK in Linux

Source: Internet
Author: User

The average company almost identical to all of the servers are built on Linux, so this is unavoidable. (If you are using the Java language), you need to put a set of JDK on Linux, which is the Java Virtual Machine environment.

Following. Let me elaborate on the installation process and the problems that may arise.

First, you need to copy Linux to your Linux system directory.

2: If your JDK is a compressed file, you will have to run the command under Linux ./JDK (remember to be sure to go to the current path) so that it is uncompressed. Assuming that you do not have to decompress in Linux, you run the command

chmod u+x JDK(gives it permission)

3: Configure environment variables: Run command vi/etc/profile environment variable settings, add the following section to the file

JAVA_HOME=/USR/LOCAL/JDK (where you install it, you'll write the path in detail)

path=.: $JAVA _home/bin: $PATH Last: Wq Save and launch

Last run source/etc/profile file takes effect

4: Enter java-version to find the JDK version number you installed, stating that it has been installed successfully.


If you do not install successfully, generally you should pay attention to check the time, 1: The path to see if the correct

2: Enter cat/etc/profile to see if the change is correct.

After making sure, there was almost no big problem.

It's just that you need to be familiar with the commands when using Linux. Like what. When inserting, you must first click a or I into the input mode, and then click ESC to enter the command mode, you can usually see

Linux, this thing is kind of interesting.

Installing JDK in 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.