jpackage errors
Andy Herrick
andy.herrick at oracle.com
Sat Jan 19 14:19:47 UTC 2019
1.) jpackage is only compatible with JDK9+, so it can't work with
--runtime-image pointing to JDK8, but clearly I need some work to detect
that and display a clear error message.
2.) javax.script.ScriptException is a public API so I don't see why you
would get this NoClassDefFoundError, can you shar the entire jpackage
build command ?
/Andy
On 1/18/2019 8:59 PM, Michael Hall wrote:
> Trying for an actual jpackage build of one my applications on OS X I got…
>
> java.lang.NoClassDefFoundError: javax/script/ScriptException
>
> Remembering that the JDK in use might be incomplete I tried to --runtime-image some older installed JRE’s for 8, 9, and 11.
> Like…
>
> --runtime-image /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk \
>
> All got the same error…
>
> Using default package resource Runtime-Info.plist.template [Java Runtime Info.plist] (add Runtime-Info.plist to the resource-dir to customize)
> Exception: java.nio.file.NoSuchFileException: outputdir/HalfPipe.app/Contents/PlugIns/Java.runtime/Contents/Home/lib/jli/libjli.dylib
> java.nio.file.NoSuchFileException: outputdir/HalfPipe.app/Contents/PlugIns/Java.runtime/Contents/Home/lib/jli/libjli.dylib
> at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
> at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
> at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
> at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:548)
> at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258)
> at java.base/java.nio.file.Files.copy(Files.java:1297)
> at jdk.jpackage/jdk.jpackage.internal.MacAppImageBuilder.copyRuntimeFiles(MacAppImageBuilder.java:413)
> at jdk.jpackage/jdk.jpackage.internal.MacAppImageBuilder.prepareApplicationFiles(MacAppImageBuilder.java:385)
> at jdk.jpackage/jdk.jpackage.internal.StandardBundlerParam.copyPredefinedRuntimeImage(StandardBundlerParam.java:655)
> at jdk.jpackage/jdk.jpackage.internal.MacAppBundler.doAppBundle(MacAppBundler.java:347)
> at jdk.jpackage/jdk.jpackage.internal.MacAppBundler.doBundle(MacAppBundler.java:312)
> at jdk.jpackage/jdk.jpackage.internal.MacAppBundler.execute(MacAppBundler.java:413)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:738)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:672)
> at jdk.jpackage/jdk.jpackage.main.Main.run(Main.java:90)
> at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:53)
> jdk.jpackage.internal.PackagerException: Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
> at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:744)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:672)
> at jdk.jpackage/jdk.jpackage.main.Main.run(Main.java:90)
> at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:53)
>
More information about the core-libs-dev
mailing list