Java Environment Building

Source: Internet
Author: User

First, install the JDK

Download JDK

Http://www.oracle.com/technetwork/java/javase/downloads

Put the downloaded JDK file under/opt to unzip

$sudo CP jdk-10.0.2_linux-x64_bin.tar.gz/opt/

$CD/opt/

$sudo Tar xzvf jdk-10.0.2_linux-x64_bin.tar.gz

Add the following statement to the. BASHRC

Export Path=/opt/jdk-10.0.2/bin: $PATH

Re-open a terminal

$ javac-version
Javac 10.0.2

Ii. installation Library source files and documents

Find the Src.zip file from the JDK and extract it to the ~/JAVA/JAVASRC directory

Jar XVF Src.zip

Download Jdk-10.0.2_doc-all.zip from Http://www.oracle.com/technetwork/java/javase/downloads and unzip to ~/java/directory

Jar XVF Jdk-10.0.2_doc-all.zip

Open the index.html under doc from the browser and add it to the bookmark.

Java Environment Building

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.