Embracing the Messiness in Search of Epic Solutions

Linux: Locating Java Home Directory

Posted

in

If you have multiple versions of Java installed, you can run which command to determine the full path of the command.

which java

To quickly navigate to Java’s home directory, you can do something like this:-

cd `which java`/..

Tags:

Comments

Leave a Reply