Aliyun the installation of JDK on the host computer A solution to the problem _java

Source: Internet
Author: User
Tags aliyun
Today continue to install JDK to the Aliyun service, we need to see if the Aliyun is 32 bit or 64 bit, if 32 bits download 32-bit package, if 64-bit download 64-bit Package

My is the 64-bit, beginning I do not know how to distinguish between 32/64, originally X64 is 64, I also ran to oracal official website download 32-bit X86 bag, made an afternoon said there is a library problems

Now I'm going to list the name of the package, and jdk-7u25-linux-x64.rpm.x64 represents the 64-bit system.
First download JDK package, I am now downloading jdk-7u25-linux-x64.rpm this package, and then go up through xftp

This xftp communication system is already supported.
. Just need to download a xftp tool. The specific download address is available on Aliyun's website.

After uploading. Direct input to installation instructions
# rpm-ivh/home/jdk-7u25-linux-x64.rpm
After installation, you can configure the environment.

Configuring the Environment
[FFF]] # VI ~/.bash
Enter on Open Text
Set java_home=/usr/java/jdk1.7.0_25
Export Java_home
Set path= $JAVA _home/bin: $PATH
Export PATH
Set classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export CLASSPATH

Enter results and press: Wq then press ENTER

Restart the computer
[FFF]] #reboot
When you are done, enter the instructions to check for proper installation
#java-version

Displays the following information to prove the installation was successful
Java Version "1.7.0_25"
Java (TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot (TM) 64-bit Server VM (build 23.25-b01, Mixed mode)
Related Article

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.