Unable to launch application which was installed using installer generated by jpackager. This issue reproducible with several jars files, so I think it does not depend on jar file.
1) jpackager create-installer pkg --input input --output output --name hello --main-jar hello.jar --class hello.Hello --files hello.jar
2) Install created pkg file.
3) Run application from finder or terminal. Application does not run. When running from terminal following error will be displayed from Java:
Error: Could not find or load main class hello.Hello
Caused by: java.lang.ClassNotFoundException: hello.Hello
1) jpackager create-installer pkg --input input --output output --name hello --main-jar hello.jar --class hello.Hello --files hello.jar
2) Install created pkg file.
3) Run application from finder or terminal. Application does not run. When running from terminal following error will be displayed from Java:
Error: Could not find or load main class hello.Hello
Caused by: java.lang.ClassNotFoundException: hello.Hello
- relates to
-
JDK-8231858 [macos] App does not run if installed with pkg
- Resolved