src/jdk.jpackage/share/classes/jdk/jpackage/internal/DeployParams.java
branchJDK-8200758-branch
changeset 57314 23da9e6f446f
parent 57276 eac9018748b3
child 57316 2891b3ae222d
equal deleted inserted replaced
57307:4948a1944cf9 57314:23da9e6f446f
   362         // then we need some resources and a main class
   362         // then we need some resources and a main class
   363         if (!hasModule && !hasAppImage && !runtimeInstaller) {
   363         if (!hasModule && !hasAppImage && !runtimeInstaller) {
   364             if (resources.isEmpty()) {
   364             if (resources.isEmpty()) {
   365                 throw new PackagerException("ERR_MissingAppResources");
   365                 throw new PackagerException("ERR_MissingAppResources");
   366             }
   366             }
   367             if (!hasClass) {
       
   368                 throw new PackagerException("ERR_MissingArgument",
       
   369                         "--main-class");
       
   370             }
       
   371             if (!hasMain) {
   367             if (!hasMain) {
   372                 throw new PackagerException("ERR_MissingArgument",
   368                 throw new PackagerException("ERR_MissingArgument",
   373                         "--main-jar");
   369                         "--main-jar");
   374             }
   370             }
   375         }
   371         }