


Upload the downloaded installation package to the directory you just created using ftp tools such as WinScp, SecureFXPortable, and so on Recommended choice: jdk-8u221-linux-圆4.tar.gzĬreate a directory on linux to store the JDK. Rpm -e -nodeps java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64Ĭheck if the uninstallation is clean and enter the first command: java-version ~]# java -versionĪs above, uninstallation is complete Step 2 Download and Unzip Oracle JDKĭownload the address and download the version you want.Select tar.gz format Java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64ĭelete four of them, and the remaining three.noarch files can be deleted or not deleted. Remove OpenJDK and type rpm-qa|grep Java on the command line ~]# rpm -qa|grep java Suspect the trouble, please follow the cannon man directly to install Oracle JDK (also known as Sun JDK, which was acquired by Oracle) which is the most commonly used JDK in our sense. Congratulations if you know that OpenJDK is what you need.You can turn off this article directly ~If you are not sure, please tell the difference between Baidu Oracle JDK and OpenJDK OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode) OpenJDK Runtime Environment (build 1.8.0_102-b14) View the JDK version and type: java-version on the command line ~]# java -versionĪs above, prove that your linux is very clean, go directly to Step 2
