Assume you have a command like so:
But what if you wanted to know where exactly it was? It is possible to have more than one JDK installed, and there are times you want to know where exactly the executable is located.
To do this, run the this command:
If you are using the Windows Command interpreter (cmd.exe), run just
Where.exe is a program packaged with Windows for this very purpose.
You should get a response like this:
Here you can see exactly where the binary is located.