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)
This article introduces the sample code of CSS pi...
Table of contents 1. Introduction 1. Basic layout...
Table of contents 1. Features 2. Examples 3. Opti...
In the database, both UNION and UNION ALL keyword...
Table of contents index - General index - Unique ...
margin:auto; + position: absolute; up, down, left...
This article mainly introduces how to implement a...
To beautify the table, you can set different bord...
Meta tag function The META tag is a key tag in th...
Table of contents Port-related concepts: Relation...
Table of contents 1.MySQL adds or subtracts a tim...
Table of contents question Reproduction Implicit ...
First check the kernel version you are using lin@...
Online shopping mall database-product category da...
Preface: rm under Linux system is irreversible. T...