I'm trying to determine the location of an executable (java.exe) on Windows. I know it must exist somewhere in the PATH since I can run it, but I don't know the exact directory that it is being run from. On a UNIX system I could use the whence command to obtain this information. Is there an equivalent command for Windows systems?
Windows – Whence for Windows
pathtroubleshootingwindows
Best Answer
On my Vista laptop if I type "where java.exe" from the command prompt it gives me the location of java.exe.
Hope this helps.