이 콘텐츠는 선택한 언어로 제공되지 않습니다.
2.3. Install OpenJDK on Red Hat Enterprise Linux
Procedure 2.1. Install OpenJDK on Red Hat Enterprise Linux
Subscribe to the Base Channel
Obtain the OpenJDK from the RHN base channel. Your installation of Red Hat Enterprise Linux is subscribed to this channel by default.Install the Package
Use the yum utility to install OpenJDK:sudo yum install java-1.8.0-openjdk-devel
$ sudo yum install java-1.8.0-openjdk-develCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that OpenJDK is the System Default
Ensure that the correct JDK is set as the system default as follows:- Log in as a user with root privileges and run the alternatives command:
/usr/sbin/alternatives --config java
$ /usr/sbin/alternatives --config javaCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Select
/usr/lib/jvm/java-1.8.0-openjdk-${java-version}.x86_64/bin/java. - Use the following command to set
javac:/usr/sbin/alternatives --config javac
$ /usr/sbin/alternatives --config javacCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Select
/usr/lib/jvm/java-1.8.0-openjdk-${java-version}.x86_64/bin/javac.