Skip to content

Instantly share code, notes, and snippets.

@antic183
Last active March 14, 2024 09:06
Show Gist options
  • Save antic183/9dcc1de131b13aa104b4b5f5f9822dac to your computer and use it in GitHub Desktop.
Save antic183/9dcc1de131b13aa104b4b5f5f9822dac to your computer and use it in GitHub Desktop.
work with several openjdk version on windows
1.) download your desired jdk version --> https://jdk.java.net/archive/
2.) unzip the and move the jdk folder on the desired place
3.) add java/bin/ folder to the PATH env.-variable permamently
- open powershell as admin !important
- $env:Path+=";C:\_YOUR-DESIRED-JAVA-PATH_\jdk-xx.xx.xx\bin"
- [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment