JDK download address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Configure the software directory in the root directory under the Linux environment Upload the downloaded jdk to the software folder (The operating software I use is) Go to the software directory. Enter the command: cd /software Enter the command: ll You can see our jdk package Unzip the file Decompression command tar xzvf jdk-8u111-linux-x64.tar.gz After decompression, you can delete the compressed package that was previously transferred Delete the file rm -fjdk-8u111-linux-x64.tar.gz Configure JDK environment variables Similar to configuring JDK in Windows, you need to configure the following three environment variables: vi /etc/profile and then enter the letter a or i to enter the editing state and add the following variables to the file Enter the command to add environment variables:
Enter the command to view the environment variables: echo $CLASSPATH echo $PATH Enter the command to view the version of jdk java -version Note: Sometimes you need to restart to see these configuration information. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Native JS to achieve cool paging effect
>>: Tutorial for installing MySQL 8.0.18 under Windows (Community Edition)
Part 1 Overview of SSH Port Forwarding When you a...
Table of contents Installation Steps Environment ...
In Linux C/C++, thread-level operations are usual...
introduce Setting up read-write separation for th...
This article example shares the specific code of ...
1. Data backup 1. Use mysqldump command to back u...
Table of contents Use of CURRENT_TIMESTAMP timest...
I have been engaged in Java web development for mo...
1. Setting case sensitivity of fields in the tabl...
Table of contents 1. Environmental Preparation 2....
1. MySQL transaction concept MySQL transactions a...
This article uses examples to describe the common...
This article shares the MySQL installation and co...
Table of contents 1. Project Environment 2. Proje...
Step 1: Configure environment variables (my decom...