Checking where the JDK is installed under Debian/Ubuntu/Mint

I needed to find out where the Oracle JDK 7 was installed. Using the whereis command did not help. I found that using the following command shows exactly where all available JDKs are installed:

sudo update-alternatives --config java

Leave a comment