본문 바로가기

Develop

windows에 ms openjdk 설치하는 법

https://docs.microsoft.com/en-us/java/openjdk/install

 

Install the Microsoft Build of OpenJDK

Describes how to install the Microsoft Build of OpenJDK.

docs.microsoft.com

 

Install on Windows

To install on any version of Windows, you can use the MSI packages or the ZIP package. If you're on Windows 10, you can use the Windows Package Manager from your Windows Terminal.

To install with the Windows Package Manager, first install winget, and then open the Windows Terminal.

Next, use the following command to search for the Microsoft Build of OpenJDK packages:

PowerShellCopy

 

 

winget search Microsoft.OpenJDK

You'll see output similar to the following:

OutputCopy

 

 

Name Id Version -------------------------------------------------------------- Microsoft Build of OpenJDK 11 Microsoft.OpenJDK.11 11.0.11.9

You can now install the package by referencing the Id shown above, using the following command:

PowerShellCopy

 

 

winget install Microsoft.OpenJDK.11

This command produces output similar to the following:

OutputCopy

 

 

Found Microsoft Build of OpenJDK 11 [Microsoft.OpenJDK.11] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licences to, third-party packages. Downloading https://aka.ms/download-jdk/microsoft-jdk-11.0.11.9.1-windows-x64.msi ██████████████████████████████ 160 MB / 160 MB Successfully verified installer hash Starting package install... Successfully installed

 

반응형