A command line means of finding out where Windows is finding an application. Neat.

where java.exe

Only finds app within the the PATH IT:AD:Environment Variables

If it's a app started via the Start button – ie, a shortcut to an app – then you'll need to use the TaskManager to track the path down.

Or use IT:AD:UltraSearch