Where Is Java Installed on Linux?
Contents Where Is My Java Installed on Linux? Alternatively, You Can Use the Whereis Command and Follow the Symbolic Links to Find the Java Path. the Output...
Contents
Where is my Java installed on Linux?
Alternatively, you can use the whereis command and follow the symbolic links to find the Java path. The output tells you that Java is located in /usr/bin/java. Inspecting the directory shows that /usr/bin/java is only a symbolic link for /etc/alternatives/java.
How do I know where Java is installed?
Verify JAVA_HOME
Open a Command Prompt window (Win⊞ + R, type cmd, hit Enter). Enter the command echo %JAVA_HOME% . This should output the path to your Java installation folder. If it doesn’t, your JAVA_HOME variable was not set correctly.