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
This article shares the specific code of Vue intr...
Prepare 1. Download the required installation pac...
If MySQL version 5.0 already exists on the machin...
Preface Recently, I added two fields to a table i...
Preface I am a PHP programmer who started out as ...
This article example shares the specific code of ...
Preface: Speaking of sandboxes, our minds may ref...
To beautify the table, you can set different bord...
Since the entire application needs to be deployed...
This article shares the specific code of JavaScri...
Scenario A recent requirement is an h5 page for m...
1. Introduction I recently worked on a project an...
Today, when developing, I encountered a method wh...
Table of contents 1. HttpGET 2. HTTP POST WebSock...
Table of contents 1. Introduction to FastDFS 1. I...