I've installed a version of Java. How can we set the $JAVA_HOME environment variable correctly?
|
|
||||
|
|
|
You can set your Open
(java path could be different) Use
Then check the variable, by running this command:
Update Usually most linux systems source /etc/environment by default. If your system doesn't do that add the following line to
|
|||||||||||||||||||||
|
|
To set
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 '15 at 7:48
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?