If you are using Linux/Unix/Mac OS X:
Try this:
$ which java
If you are using Windows:
c:\> for %i in (java.exe) do @echo. %~$PATH:i
If you are using Linux/Unix/Mac OS X:
Try this:
$ which java
If you are using Windows:
c:\> for %i in (java.exe) do @echo. %~$PATH:i