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)
Table of contents 1. Introduction to SQL Injectio...
First of all, we know that this effect should be ...
<br />In one year of blogging, I have person...
Vue bus mechanism (bus) In addition to using vuex...
This article shares the specific code of js canva...
It is very simple to build a go environment under...
The previous article introduced several methods f...
Unzip the file into a directory This is the direc...
Preface The service has been deployed on MySQL fo...
In the previous blog, we talked about using Nginx...
This article example shares the specific code of ...
Table of contents Mainly used Postman functions D...
Preface I just bought a new VPS. The data disk of...
Preface: Lynis is a security audit and hardening ...
This article analyzes the process of shutting dow...