이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 2. Installing OpenJDK


The following section describes how to install OpenJDK on Microsoft Windows and Red Hat Enterprise Linux (RHEL).

2.1. Installing OpenJDK on Windows

The following section describes how to install OpenJDK 1.8.0 on Windows using the MSI-based installer.

Procedure

  1. Download the MSI-based Installer from Red Hat Developer Portal.
  2. Run the installer and follow the on-screen installation instructions.
  3. Configure CodeReady Studio to use OpenJDK by following the instructions for Working with Java Runtime Environments.

2.1.1. Additional Resources

2.2. Installing OpenJDK on RHEL

The following section describes how to install OpenJDK 1.8.0 and OpenJDK 11 on RHEL.

Prerequisites

2.2.1. Installing OpenJDK 1.8.0 on RHEL

The following section describes how to install OpenJDK 1.8.0 on RHEL.

Procedure

  • To install OpenJDK RPMs, use:

    # yum install java-1.8.0-openjdk-devel

Optionally, you can install the java-1.8.0-openjdk-src and the java-1.8.0-openjdk-demo packages. The java-1.8.0-openjdk-src package contains the complete OpenJDK 8 class library source code you can use with IDE indexers and debuggers. The java-1.8.0-openjdk-demo package contains Java runtimes for OpenJDK (demos and examples).

  • To install java-1.8.0-openjdk-demo and java-1.8.0-openjdk-src, use:

    # yum install java-1.8.0-openjdk-src java-1.8.0-openjdk-demo

2.2.2. Installing OpenJDK 11 on RHEL

The following section describes how to install OpenJDK 11 on RHEL.

Procedure

  • To install OpenJDK RPMs, use:

    # yum install java-11-openjdk-devel

Optionally, you can install the java-11-openjdk-src and the java-11-openjdk-demo packages. The java-11-openjdk-src package contains the complete OpenJDK 8 class library source code you can use with IDE indexers and debuggers. The java-11-openjdk-demo package contains Java runtimes for OpenJDK (demos and examples).

  • To install java-11-openjdk-demo and java-11-openjdk-src, use:

    # yum install java-11-openjdk-src java-11-openjdk-demo

Troubleshooting

If you are unable to login to OpenShift 4.4.0 cluster, use JDK 8 with SSL protocol set to default or configure your Java to use TLSv1.2 as your SSL protocol.

  • To configure Java to use TLSv1.2, run:

    $ java -Djdk.tls.client.protocols=TLSv1.2 MyApplication.jar

    Replace MyApplication with the name of the application.

2.2.3. Additional resources

Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.