How can we set
JAVA_HOME environment variable for OpenJDK?
You can set your
Then check the variable, by running this command:
The above method will save you the hassle in having to run the commands every time you log in to your computer.
If you do not know the path and you only have openJDK installed, you can type
protected by Community♦ Mar 8 at 7:48
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?