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
Table of contents 1. Node.js and Vue 2. Run the f...
Find information Some methods found on the Intern...
Today I was dealing with the issue of migrating a...
Table of contents Preface 1. Background 2. Simula...
This article summarizes some simple principles of...
1. First of all, we need to distinguish between t...
When releasing a project, you will often encounte...
rep / egrep Syntax: grep [-cinvABC] 'word'...
Table of contents 1. What is copy_{to,from}_user(...
1. Introduction When we log in to MySQL, we often...
Ubuntu 18.04 installs mysql 5.7 for your referenc...
This article example shares the specific code of ...
When you install MySQL, you will be given an init...
Today I will share with you a picture marquee eff...
Because a certain function of my project requires...