1. Go to the official website to download the jdk package for linux, such as jdk-8u162-linux-x64.tar.gz 2. Create a directory and copy the jdk package to it, such as home/haha/user/java 3. Enter the directory in the console and execute tar zxvf jdk-8u162-linux-x64.tar.gz to decompress it. 4. Configure environment variables: Open the console, run sudo vi /etc/profile, insert the following configuration content into the file, then save and exit (first press esc, then press :wq) JAVA_HOME=/home/haha/user/java/jdk1.8.0_162 PATH=$JAVA_HOME/bin:$PATH CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export JAVA_HOME export PATH export CLASSPATH 5. Run source /etc/profile to make the environment effective 6. Enter java -version in the terminal to see if it is successful (if successful, the corresponding version number will appear). Summarize The above is the editor's introduction to the configuration of the JDK environment under Linux. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time! You may also be interested in:
|
<<: MYSQL METADATA LOCK (MDL LOCK) MDL lock problem analysis
>>: A brief discussion on JS packaging objects
mysql query control statements Field deduplicatio...
As more and more Docker images are used, there ne...
The javascript function for converting <table&g...
The MySQL development team officially released th...
1. Install Docker. Reference URL: Docker Getting ...
Table of contents Preface start A little thought ...
Following the previous article 202 Free High-Qual...
1. First, prepare VS2019 and MySQL database. Both...
Table of contents 1. The role of watch in vue is ...
1. View the renderings Select forward: Select bac...
This article example shares the specific code for...
Table of contents Presentation Layer Business Lay...
This article explains the difference between arro...
Preface: position:sticky is a new attribute of CS...
Simply use CSS to achieve all the effects of corn...