summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/JavaUtils.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/logic/JavaUtils.cpp b/logic/JavaUtils.cpp
index 278046e9..e1b3bc64 100644
--- a/logic/JavaUtils.cpp
+++ b/logic/JavaUtils.cpp
@@ -153,9 +153,14 @@ QList<QString> JavaUtils::FindJavaPaths()
KEY_WOW64_32KEY, "SOFTWARE\\JavaSoft\\Java Development Kit");
java_candidates.append(JRE64s);
+ java_candidates.append(MakeJavaPtr("C:/Program Files/Java/jre7/bin/java.exe"));
+ java_candidates.append(MakeJavaPtr("C:/Program Files/Java/jre6/bin/java.exe"));
java_candidates.append(JDK64s);
java_candidates.append(JRE32s);
+ java_candidates.append(MakeJavaPtr("C:/Program Files (x86)/Java/jre7/bin/java.exe"));
+ java_candidates.append(MakeJavaPtr("C:/Program Files (x86)/Java/jre6/bin/java.exe"));
java_candidates.append(JDK32s);
+ java_candidates.append(MakeJavaPtr(this->GetDefaultJava()->path));
QList<QString> candidates;
for(JavaVersionPtr java_candidate : java_candidates)
@@ -166,13 +171,6 @@ QList<QString> JavaUtils::FindJavaPaths()
}
}
- candidates.append("C:/Program Files/Java/jre7/bin/java.exe");
- candidates.append("C:/Program Files/Java/jre6/bin/java.exe");
- candidates.append("C:/Program Files (x86)/Java/jre7/bin/java.exe");
- candidates.append("C:/Program Files (x86)/Java/jre6/bin/java.exe");
-
- candidates.append(this->GetDefaultJava()->path);
-
return candidates;
}