1. Download jdk download address
2. Create a new folder 3. Copy the file to the folder just generatedcp jdk-8u221-linux-x64.tar.gz /usr/local/java 4. Enter the java folder and unzip the filecd /usr/local/java sudo tar xvf jdk-8u221-linux-x64.tar.gz 5. Delete the compressed package 6. Add environment variables After opening, add at the end export JAVA_HOME=/usr/local/java/jdk1.8.0_221 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH 7. Test whether the installation is successful If an error occurs The program 'java' is included in the following packages: default-jre gcj-4.8-jre-headless openjdk-7-jre-headless gcj-4.6-jre-headless openjdk-6-jre-headless Please try: sudo apt-get install <selected packages> Terminal Input sudo update-alternatives --install /usr/bin/java java /usr/local/java/jdk1.8.0_221/bin/java 300 sudo update-alternatives --install /usr/bin/java java /usr/local/java/jdk1.8.0_221/bin/javac 300 sudo update-alternatives --config java Enter Summarize The above is the tutorial on how to install jdk1.8 on ubuntu14.04 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:
|
<<: Detailed tutorial on installing mysql-8.0.13 (zip installation) on windows 10 system
>>: Springboot+VUE to realize login and registration
(Win7 system) VMware virtual machine installation...
Find the problem When retrieving the top SQL stat...
Table of contents Preface 1. Startup management b...
Use js to control the light switch for your refer...
1. Create the MySQL database nacos_config 2. Sele...
This article example shares the specific code of ...
Today I made a menu button. When you move the mous...
The previous article has installed the docker ser...
Table of contents 1. Location Object 1. URL 2. Pr...
Web Server 1. The web server turns off unnecessar...
You can save this logo locally as a .rar file and...
1.1 Download the binary installation package wget...
Table of contents Vue+ElementUI background manage...
Method 1: INSERT INTO t1(field1,field2) VALUE(v00...
Table of contents origin status quo Cancel reques...