find location of the command

‚Äč

whereis java

Uses

  1. To know that the intended version of the library is in path.