Java HotSpot(TM) 64-Bit Server VM (build 12.0. Java(TM) SE Runtime Environment (build 12.0.2+12) You can verify the Java 9 version installed on your system by running the following command: :~$ java -version Now run the following command: :~$ source /etc/environment :~$ vim /etc/environmentĪdd the following line to the file: JAVA_HOME="/usr/java/jdk-12.0.2" There are 2 programs which provide 'java'.Įnter to keep the current selection, or type selection number: 3Īfter installing, we need to set the environment variables and the executable files path into your system $PATH variable, by running the below commands. To install Java 12 JDK/JRE on your Fedora, run the following commands: :~$ rpm -ivh jdk-12.0.2_linux-圆4_bin.rpmĪfter installation, you can make the Java 12 the default version by running the command below: :~$ alternatives -config java To install Java 12 JDK/JRE on your RHEL/CentOS 7, run the following commands: :~$ yum localinstall jdk-12.0.2_linux-圆4_bin.rpm On Fedora :~$ wget -no-check-certificate -c -header "Cookie: oraclelicense=accept-securebackup-cookie" įollow the instructions below to install the Java SE 9 JDK/JRE on your system On RHEL/CentOS 7 You can run the following commands to download the Java 9 JDK and JRE. Change the default JDK on Linux If you have several versions of OpenJDK installed on your system, use the following command to set the Microsoft Build of OpenJDK as the default: For Debian/Ubuntu: Bash sudo update-java-alternatives -set msopenjdk-17-amd64 For CentOS, you can use the command alternative.
0 Comments
Leave a Reply. |