Linux installation JDK1.8 steps 1. Check whether CentOS has its own openJDK. It is not recommended to use the built-in one, so uninstall it first.
2. Uninstall the built-in openJDK method:
After the uninstallation is complete, start downloading and installing jdk. 3. Download JDK Select the corresponding jdk according to the bit number of the system, and check the bit number command "getconf LONG_BIT" Download address: 64-bit: Link: https://pan.baidu.com/s/1tccc9tlwhCScmZp90urRGw Extraction code: wmvi 32-bit: https://pan.baidu.com/s/1n3jtj0yaa091HZ0ZBYyJGA Extraction code: x25w 4. Upload JDK Use the rz command to upload. If there is no rz command, install it first using 5. Unzip JDK
6. Configure environment variables The environment variables of the Windows operating system are configured through tools. On Linux, the environment variables are stored in the profile file. Open the file and use vim to modify it. (You can also download and modify it in sz and then upload it in rz. I think it is more convenient to edit. Personal operation, not professional, please don't criticize!) The configuration is as follows:
After the configuration is complete, execute the command "source /etc/profile" to make the file effective. 7. Verify whether the installation is successful Execute the command "java -version", the installation is successful as follows, which is consistent with Windows Summarize This is the end of this graphic tutorial on how to install JDK 1.8 on CentOS 7.4. For more information about installing JDK 1.8 on CentOS 7.4, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: npm Taobao mirror modification explanation
>>: ERROR 1862 (HY000): Your password has expired. To log in you must change it using a .....
Table of contents Initialization of echart app-ba...
Using NULL in comparison operators mysql> sele...
When inserting data, I found that I had never con...
Note: When writing the docker-compose.yml file, a...
Use JS to implement object-oriented methods to ac...
This article example shares the specific code of ...
Preface Recently our server was attacked by hacke...
Rownum is a unique way of writing in Oracle. In O...
Preface The CentOS environment variable configura...
1. Download and unzip to: /Users/xiechunping/Soft...
Note: Other machines (IP) cannot connect to the M...
In actual project development, if we have a lot o...
Subquery in MySql database: Subquery: nesting ano...
[LeetCode] 180. Consecutive Numbers Write a SQL q...
Table of contents What is nginx 1. Download the r...