JDK download and install (Linux) __java

Source: Internet
Author: User

One: JDK installation


1.JDK Download Address:

jdk1.7 64-digit official download address http://www.oracle.com/technetwork/java/javase/downloads/index.html


To download the latest version, you can choose to download it now:


Download history version: From the homepage of the place into



After entering:



After entering: I choose to be 7 version


Note: Before downloading, remember to tick accept License agreement

If you are prompted not to log in, register to login.


2. Upload the downloaded files to the Linux server

Using remote links with Linux tools, upload a good jdk to the server (such as tool FileZilla (Linux remote File Transfer server))

Figure I: Remote Tools linked to the server, if the link failed, login users without errors, you can change the port to 22 links

Figure II: Uploading JDK



To this: The file has been uploaded to the server successfully

Through Xshell (Linux remote control software) can be viewed to upload the successful file



3. Extract Files

After the tar xvf jdk-7u80-linux-x64.tar.gz decompression is complete, modify the configuration file

Vim/etc/profile

At the end of the file, add:

Note: My jdk1.7.0_80 is extracted after the local below, so the path should be filled in the following configuration:

Export java_home=/usr/local/jdk1.7.0_80
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar






Press ESC and then: Wq Save exit


Restarting the server

Test: Java-version



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.