Linux under JDK installation configuration __linux

Source: Internet
Author: User

Configuration is simple, Java deployment Getting started configuration,

As follows:

1, Decompression installation package

[Root@localhost software] Tar zxvf jdk-8u152-linux-x64.tar.gz

2. Edit System Environment variables
[Root@localhost Software] Vi/etc/profile

The content of the accession is as follows:
Export java_home=/home/svr/application/jdk/jdk8
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/ Tools.jar
Export path= $JAVA _home/bin: $PATH
Note Punctuation, Java_home is the directory path that the JDK stores;

3, load the variable just set (effective immediately)
[Root@localhost Software] Source/etc/profile

4. Test whether the installation is successful
[Root@localhost Software]  Java-version 
java Version "1.8.0_152"
Java (TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot ( TM) 64-bit Server VM (build 25.152-b16, Mixed mode)
The JDK's version information is then displayed, and so on,

Configuration complete.



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.