[java] How to find where javaw.exe is installed?

Try this

for %i in (javaw.exe) do @echo. %~$PATH:i