I am trying to configure java home on ubuntu VM. Compared to windows, things seems to be pretty complex and confusing.
I installed jdk 8 using 'sudo apt-install....', so when I check version:
java -version openjdk version "1.8.0.62"
When I do, 'which java', I get:
/usr/bin/java
But /usr/bin/java is a file, not a directory.
When I do, 'whereis java', I get three entries:
/usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz
But I don't see jdk installed at these locations.
On some more google search, I find that its actually /usr/lib/jvm where jdk is installed.
So what are all these locations in file system? And have I done correct thing by pointing JAVA_HOME to /usr/lib/jvm/.... ?