5/18/2023 0 Comments Yum install javaThere are 3 programs which provide 'java'.ġ java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.11.0.9-2.el8_4.x86_64/bin/java)Ģ java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.8_4.x86_64/jre/bin/java)Įnter to keep the current selection, or type selection number: 1Įnter the number below the selection column to set the default Java version. ![]() If your system has multiple Java versions, the above command will list all Java versions like below. Use the alternatives command to set the default java version. To install Oracle JDK to a custom directory, use rpm -ivh –prefix=// rpmfile command. ![]() By default, Java JDK is installed in /usr/java/ directory.
0 Comments
Leave a Reply. |