On Windows the JavaWS executable is searched using SHGetSpecialFolderPath with CSIDL_SYSTEMX86