Configuring JDK under Linux

Source: Internet
Author: User

1.JDK Download:

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

Download the tar.gz compressed package that is marked with a red line.

Copy the downloaded compressed package to your own environment variable storage path (this can be arbitrarily selected, and remember the line)

I chose the/home/q/path, where the Q folder was created by myself.

2 Unzip the downloaded file to get the following folder:

3 Configuring the System environment variables:

In the terminal input sudo vim/etc/profile edit environment variable,


The Red Line part is the environment variable you need to configure,

Java_home= your own JDK storage path,

When you are done editing, restart your computer,

Input in Terminal: Java-version


, displaying the JDK version and information indicating that the JDK installation was successful. (Explain, because I have installed the JDK, I just said the installation process, did not reinstall, so the previous download of the jdk1.8,

And the last display version is 1.6, so don't be too tangled on this issue ~ ~ ~)

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Configuring 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.