Path
JAVA_HOME
When you run a command, such as
java -version
Your OS will look through the directories specified on the path for a program named java
java
You can find the location of the program by running the following command
where java
whereis java
Running java commands will display an error message "Cannot be found" or "Is not installed"
Running where commands will display an error message "Cannot find the files" or a blank path (such as java: with no actual value)
where
java:
Double clicking a JAR file may result in nothing happening (since Java isn't properly installed)
Open the terminal/command prompt on your machine
echo %path%
TODO- Include UI view
$PATH
TODO - Include scoping
TODO - Explain why JAVA_HOME is required by some programs
TODO - Explain path priority
There was an error while loading. Please reload this page.