diff options
Diffstat (limited to 'java/execution/openapi/src/com/intellij/execution/configurations/CommandLineBuilder.java')
-rw-r--r-- | java/execution/openapi/src/com/intellij/execution/configurations/CommandLineBuilder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/execution/openapi/src/com/intellij/execution/configurations/CommandLineBuilder.java b/java/execution/openapi/src/com/intellij/execution/configurations/CommandLineBuilder.java index ac081d04b5c7..8ae0d9bae3e3 100644 --- a/java/execution/openapi/src/com/intellij/execution/configurations/CommandLineBuilder.java +++ b/java/execution/openapi/src/com/intellij/execution/configurations/CommandLineBuilder.java @@ -79,7 +79,7 @@ public class CommandLineBuilder { if (exePath == null) { throw new CantRunException(ExecutionBundle.message("run.configuration.cannot.find.vm.executable")); } - if (javaParameters.getMainClass() == null) { + if (javaParameters.getMainClass() == null && javaParameters.getJarPath() == null) { throw new CantRunException(ExecutionBundle.message("main.class.is.not.specified.error.message")); } |