equal
deleted
inserted
replaced
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 } |