src/jdk.jpackage/share/classes/jdk/jpackage/internal/AbstractImageBundler.java
branchJDK-8200758-branch
changeset 57389 cce526c681dc
parent 57307 4948a1944cf9
child 57392 46d4b0aa4542
equal deleted inserted replaced
57384:4a296d9a76a0 57389:cce526c681dc
   126             Log.verbose(MessageFormat.format(
   126             Log.verbose(MessageFormat.format(
   127                     I18N.getString("message.creating-app-bundle"),
   127                     I18N.getString("message.creating-app-bundle"),
   128                     name, outputDirectory.getAbsolutePath()));
   128                     name, outputDirectory.getAbsolutePath()));
   129         }
   129         }
   130 
   130 
       
   131         // NAME will default to CLASS, so the real problem is no MAIN_CLASS
       
   132         if (name == null) {
       
   133             throw new PackagerException("ERR_NoMainClass");
       
   134         }
       
   135 
   131         // Create directory structure
   136         // Create directory structure
   132         File rootDirectory = new File(outputDirectory, name);
   137         File rootDirectory = new File(outputDirectory, name);
   133 
   138 
   134         if (rootDirectory.exists()) {
   139         if (rootDirectory.exists()) {
   135             throw new PackagerException("error.root-exists",
   140             throw new PackagerException("error.root-exists",