Open JDK Windows
To install OpenJDK on Windows, you can follow these steps:
Download OpenJDK:
- Visit the Adoptium (formerly AdoptOpenJDK) website, which provides pre-built OpenJDK binaries for various platforms, including Windows: https://adoptium.net/
- On the website, select the version of OpenJDK that you want to install (e.g., OpenJDK 8, 11, 17) and choose the “JVM” or “HotSpot” option for the Java Virtual Machine.
- Click the “Download” button to start the download.
Run the Installer:
- Once the download is complete, run the installer executable file.
- Follow the installation wizard’s instructions to install OpenJDK on your Windows system.
- During the installation, you can choose the installation directory, but the default location is typically in “C:\Program Files\AdoptOpenJDK.”
Set Environment Variables (Optional):
- To use OpenJDK from the command prompt or in development tools like Visual Studio Code, you may need to set the
JAVA_HOME
environment variable. - Right-click on “This PC” (or “My Computer”) and select “Properties.”
- Click on “Advanced system settings” on the left side.
- Click the “Environment Variables” button.
- Under “System Variables,” click “New” to create a new variable with the name
JAVA_HOME
and the value set to the installation directory of your OpenJDK (e.g.,C:\Program Files\AdoptOpenJDK\jdk-11.x.x.x
). - In the “System Variables” section, find the “Path” variable and click “Edit.”
- Add
%JAVA_HOME%\bin
to the list of paths. This allows you to run Java commands from any command prompt.
- To use OpenJDK from the command prompt or in development tools like Visual Studio Code, you may need to set the
Verify the Installation:
Open a command prompt and run the following command to verify that OpenJDK is installed correctly:
java -version
You should see the version information for the installed OpenJDK.
That’s it! You’ve successfully installed OpenJDK on your Windows system. You can now use it to compile and run Java applications. Additionally, you can configure development tools like Visual Studio Code or IntelliJ IDEA to use this JDK for Java development.
Demo Day 1 Video:
Conclusion:
Unogeeks is the No.1 Training Institute for Java Training. Anyone Disagree? Please drop in a comment
You can check out our other latest blogs on Java Training here – Java Blogs
You can check out our Best in Class Java Training details here – Java Training
Follow & Connect with us:
———————————-
For Training inquiries:
Call/Whatsapp: +91 73960 33555
Mail us at: info@unogeeks.com
Our Website ➜ https://unogeeks.com
Follow us:
Instagram: https://www.instagram.com/unogeeks
Facebook: https://www.facebook.com/UnogeeksSoftwareTrainingInstitute
Twitter: https://twitter.com/unogeeks