OpenJDK 11 installation memo

Oracle JDK paid

A little while ago, the news of java charging became a hot topic.

It is said that it will be divided into paid Oracle JDK and free OpenJDK.

image.png

However! The procedure for installing OpenJDK has become a little complicated. ~~ As expected, Oracle is dirty. ~~ It is an installation memo of OpenJDK.

Download the Zip file

First of all, on the distribution page of Oracle JDK It's under ** Important Changes in Oracle JDK 11 License . ** Jump to the page http://jdk.java.net/11/

image.png

So download the zip file that says Windows / x64

Set the environment variables in the file settings.

When you unzip the zip file, you should see a folder like this.

image.png

This is OpenJDK11. ** Yes, OpenJDK doesn't have an installer! ** **

Move this directly under C or in Program Files \ Java. (Deployment location is your choice)

Set environment variables.

Next, set the environment variables. ~~ Even though the previous installer did it for me ・ 3 ・ ~~

First, set the user environment variables.

Enter "** system environment variables **" in the search bar of the menu Open system properties. From there, press the ** Environment Variables ** button.

image.png

Then a list of environment variables will appear. Click ** Path ** in the upper window and press the edit button.

image.png

Then, enter the path of the newly expanded OpenJDK. Enter the extracted folder \ Jdk-11 \ bin **.

image.png

This completes the setting of user environment variables.

Next, set the system environment variables.

From the ** New ** button of the system environment variable

Variable name ** JAVA_HOME ** Variable value OpenJDK expanded earlier (** Expanded folder \ Jdk-11 \ bin **)

Please enter.

image.png

This completes the environment variable settings!

image.png

Check Java operation

Now let's see if Java actually works.

Launch powershell,

java -version And enter the command.

image.png

I confirmed that the version is 11 properly.

Conclusion: Oracle dirty.

Installing OpenJDK has made a lot of beginners cry. The GPL license also has a slightly higher threshold. (Do you mean you can use a new language? (´ ・ ω ・ `)) Unfortunately, it has become difficult to raise Java to the language recommended for beginners.

For those who still want to use Java. Leave a note

reference How to install OpenJDK 11 on Windows? https://stackoverflow.com/questions/52511778/how-to-install-openjdk-11-on-windows

Recommended Posts

OpenJDK 11 installation memo
OpenJDK installation
Dot installation study memo 01
OpenJDK installation on CentOS 7
Personal memo Eclipse plug-in installation
Windows version of OpenJDK installation procedure
Integer memo
docker memo
Lombok memo
Dockerfile memo
AppCDS @ OpenJDK
Java memo
AWS memo
Docker installation
Wildfly installation
Ubuntu 20.04 RTX 3090 cuda cuDNN driver installation memo
Dcokerfile memo
Gradle installation
Spring Boot + Thymeleaf BootStrap installation method memo
Ruby memo
java installation
Memo Stream