The help output of jpackager should mention how to set the classpath for the various bundle resource files. I have not found a working solution how to set the classpath. jpackager -classpath build/deploy/ jpackager -cp build/deploy/
DEB Using default package resource [menu icon] (add package/linux/application.png to the class path to customize) Using default package resource [Menu shortcut descriptor] (add package/linux/application.desktop to the class path to customize) Using default package resource [DEB control file] (add package/linux/control to the class path to customize) RPM Using default package resource [menu icon] (add package/linux/application.png to the class path to customize) Using default package resource [Menu shortcut descriptor] (add package/linux/application.desktop to the class path to customize) Using default package resource [RPM spec file] (add package/linux/application.spec to the class path to customize) The application image can be set with the --icon argument. --icon build/deploy/package/linux/application.png Using custom package resource [menu icon] (loaded from file /home/user/workspace/application/build/deploy/package/linux/application.png) Perhaps jpackager should have an package directory argument --package-dir build/deploy /Sverre Den tor. 15. nov. 2018 kl. 15:05 skrev Andy Herrick <andy.herr...@oracle.com >: > > On 11/10/2018 8:12 AM, Sverre Moe wrote: > > I have been using the jpackager that Johan Vos backported for OpenJDK 11. > For this I have some points of improvement I would like to mention. > > 1) > The control file for debian package does not set correct description > > --name test > --description This is a Test Application > > /tmp/jdk.packager607148779833718376/linux/control > Package: test > Description: test > > The RPM gets it correctly > Summary : test > Description : > This is a Test Application > > > 2) > Category is not set on either DEB or RPM > --category > Category or group of the application. > --category "Some/Category/Application" > Group: Unspecified > Section: unknown > > 3) > The jpackager command line should have the flag --release in addition to > --version. The only way to set a different release than "1" is to supply a > custom spec file for RPM and control file for DEB. > package/linux/test.spec > Version: 1.0.0 > Release: RC1 > package/linux/control > Version: 1.0.0-RC1 > > I have filed issue JDK-8213941 > <https://bugs.openjdk.java.net/browse/JDK-8213941> and we will be looking > into it. > > Thanks. > > /Andy > > > /Sverre > >