Ali cloud host installed JDK a library problem solution

  • 2020-04-01 02:06:04
  • OfStack

Today, we continue to install the JDK to the ali cloud service, you have to see whether ali cloud is 32-bit or 64-bit, if it is 32-bit download 32-bit package, if it is 64-bit download 64-bit package

Mine is 64-bit. At first, I don't know how to distinguish 32/64-bit. X64 is 64-bit

Now I'll list the package's name. The jdk-7u25-linux-x64.rpm.x64 represents a 64-bit system.
First, download the JDK package. I'm now downloading the JDK -7u25-linux-x64.rpm package and then go to it via XFTP
< img SRC = "border = 0 / / files.jb51.net/file_images/article/201306/201306261718254.gif? 2013526171838 ">  
This XFTP communication system is already supported
Just need to download an XFTP tool. The specific download address in the official website of aliyun.

After uploading. Direct input installation instructions
# RPM - the ivh/home/JDK 7 u25 - Linux - x64. RPM
Once installed, you can configure the environment.

Configure the environment
[FFF]] # vi ~ /. Bash
Type on the open text
Set the JAVA_HOME = / usr/Java/jdk1.7.0 _25
Export JAVA_HOME
Set the PATH = $JAVA_HOME/bin: $PATH
The export PATH
Set the CLASSPATH =. : $JAVA_HOME/lib/dt. The jar: $JAVA_HOME/lib/view the jar
Export the CLASSPATH

After entering the result, press :wq and press enter

Reboot your computer
[FFF]] # reboot
After starting, enter an instruction to check that the installation is correct
# Java - version

The following information is displayed to confirm that 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 articles: