Easy installation tutorials for Jdk1.8 of Linux and windows

  • 2020-11-25 07:47:04
  • OfStack

jdk (SunMicrosystems for Java developers)

JDK is a software development toolkit for Java, mainly used for java applications on mobile devices and embedded devices. JDK is the core of the entire java development, it contains the JAVA runtime environment (JVM+Java system class library) and JAVA tools.

This article focuses on the installation tutorial of Jdk1.8, as shown below:

1.1 JDK1.8 Download address

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

1.2 System environment


[root@LNB ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@LNB ~]# uname -a
Linux LNB 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

1.2.1 Deploy the java environment


# use yum  � y install lrzsz  Install the upload and download tool 
[root@LNB tools]# mkdir /application
[root@LNB ~]# mkdir /server/tools  � p
[root@LNB ~]# cd /server/tools
[root@LNB tools]# rz
[root@LNB tools]# ls
jdk-8u60-linux-x64.tar.gz
[root@LNB tools]# tar xf jdk-8u60-linux-x64.tar.gz -C /application/ # Unzip to the specified directory 
[root@LNB tools]# ln -s /application/jdk1.8.0_60 /application/jdk  # Set up a soft connection for easy operation 
[root@LNB tools]# sed -i.ori  ' $a export JAVA_HOME=/application/jdk\nexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH\nexport CLASSPATH=.$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar '  /etc/profile  # Add environment variables 
[root@LNB tools]# source /etc/profile # To take effect 
[root@LNB tools]# java  � version  # Check whether the installation has been successful, as shown below 
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

conclusion


Related articles: