reworded message

This commit is contained in:
Dmitry Jemerov
2014-12-03 18:10:43 +01:00
parent f755fc3e12
commit 4219f0803f
2 changed files with 2 additions and 2 deletions
@@ -136,7 +136,7 @@ public class JavaParametersUtil {
}
final boolean isJdk = JavaSdk.checkForJdk(new File(jreHome));
if (isJdk) {
throw new CantRunException("Jre expected but jdk found");
throw new CantRunException("Alternative JRE path needs to point to a JRE, not to a complete JDK installation");
}
final Sdk jdk = JavaSdk.getInstance().createJdk("", jreHome);
if (jdk == null) throw CantRunException.noJdkConfigured();