Install JDK in Linux under VM

Source: Internet
Author: User
To install JDK in Linux, perform the following steps: 1. download the JDK Linux installation version from the sun website: http: wwworacl

To install JDK in Linux, perform the following steps:

1. download JDK Linux installation version from sun website: http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. upload the file to Linux through ftp

First, confirm that the Vsftpd server has been installed on Linux and started.

Upload jdk to Linxux under dos

Use the putty client to connect to remote Linux. check the/var/ftp directory and find that the file has been uploaded. VcD4KPHA + ICAgICAgICA8aW1nIHNyYz0 = "http://www.2cto.com/uploadfile/Collfiles/20140228/201402280906042.jpg" alt = "\">

3. modify the running permission of the file

The modified jdk file turns green.

4. query the type of the installation file. if it is a. bin file, it is a file that can be run directly. if it is an rpm file, it indicates the file that needs to be installed through rpm. Installing through the. bin file is very simple. you can simply enter./jdk.

Press enter to install it. because I have installed it on Linux, I will not install it again.

5. after the installation is complete, check java-version to check the current jdk version. if you find that the version is not just installed, set the corresponding path,

Because there may be corresponding jdk in the original machine, it will not find the newly installed jdk by default, you must manually set the corresponding environment variables, you can set the/etc/profile file, note that the profile takes effect only after the user logs in again.

After the modification, log out of the user and log on again. enter java-vsersion again to check whether the version we just installed is correct. If yes, the environment variable has been configured.

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.