A dirty hack that allows 32-bit Java to find location of 64-bit program files on windows. Fixes
@@ -87,7 +87,7 @@ public static synchronized Properties loadEnvironment() {
* @return the path to the Windows Program Files
*/
public static String getProgramFilesPath() {
- return getEnvVarPath("ProgramFiles", "C:\\Program Files");
+ return getEnvVarPath("ProgramFiles", "C:\\Program Files").replace(" (x86)", "");
}
public static String getProgramFiles86Path() {
