JDK Installation I won't go into too much detail about system installation. You can find the installation steps online. However, I recommend that you choose the desktop graphical format for installation to facilitate some operations. At the same time, choose English mode during the installation process. At the same time, I found that using the Oracle VM VirtualBox virtual machine tool is more convenient than using VM tools for development. Use the tools
File Path Link: https://pan.baidu.com/s/1qu71DDVXvU3kBEg-cgBpKw Extraction code: hn1u 1. Upload the jdk file (/develop/package) 2. Uninstall jdk (centOS will have its own jdk version) 1) Query all Java (If you use the minimum configuration command line, you can install it directly if you cannot find any Java) 2) Delete the java files other than the three ones rpm -e --nodeps java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64 rpm -e --nodeps java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64 rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64 rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64 3) After deleting, query using command 3. Unzip JDK 4. Configure environment variables (using EditPlus) Open /etc/profile Add the following code at the end #java environment export JAVA_HOME=/develop/jdk1.8.0_191 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin 5. Make the modified configuration take effect 6. Check whether the configuration is successful Summarize The above is a detailed tutorial on how to install JDK8 on Linux system (CentOS7 installation) introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Vue3.0 handwriting magnifying glass effect
>>: Detailed analysis of the MySQL slow log opening method and storage format
This article example shares the specific code of ...
Tutorial Series MySQL series: Basic concepts of M...
The first method: dynamically add a class to show...
The best thing you can do for your data and compu...
1. Download the MySQL installation package (there...
This article mainly introduces how to implement a...
1. It is best to add a sentence like this before t...
Table of contents 1. Problem Discovery 2. View de...
1. Install and start nginx # Install nginx sudo a...
This article shares the specific code of Vue to i...
Effect picture: 1. Introduction Your own applet n...
REPLACE Syntax REPLACE(String,from_str,to_str) Th...
Table of contents Common functions of linux drive...
I heard that there is an interview question: How ...
When you need to create an email in a shell scrip...