I installed jdks in /usr/lib/jvm, and accordingly changed /etc/environment for JAVA_HOME.
I then do:
$ which java
/usr/bin/java
$ whereis java
java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz
So even though I install jdks in /usr/lib/jvm, which and whereis commands show different locations.
What's the connection here?
/usr/bin/javawhichwhichfinds, andwhereisthinks these other locations are relevant according to its definition of relevance. – muru Oct 17 '23 at 11:48