Filling the Packager gap

Johan Vos johan.vos at gluonhq.com
Fri Dec 14 12:47:36 UTC 2018


Hi Sverre,

Scene Builder 11 is built using that backported packager, but not
everything was working yet.
It is not the intention to make a real product based on this backported
code -- we just did it to fill the gap until the jpackage tool is available.

My understanding is that once the jpackage tool is released, you should be
able to use it to bundle Java(FX) 11 based apps.

The first EA version of the jpackage tool is available now, so I think this
is now the way forward: http://jdk.java.net/jpackage/

- Johan

On Sun, Nov 11, 2018 at 11:00 PM Sverre Moe <sverre.moe at gmail.com> wrote:

> Johan,
> has there been any new updates to jpackager in JDK12 since you backported
> it?
>
> I have found some problems with jpackager. Perhaps they might have been
> fixed later.
> I mentioned this to core-list-dev mailinglist on jpackager thread.
>
> 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
>
> Perhaps I have misunderstood what this category is for, because I see this
> it is set in the generated application.desktop, but It should definitely
> also be set in the RPM and DEB.
>
> /Sverre
>
> Den ons. 19. sep. 2018 kl. 10:56 skrev Johan Vos <johan.vos at gluonhq.com>:
>
>> Hi,
>>
>> As promised, we looked into an interim solution for the packager-gap. Work
>> for the new Java Packager (12?) is being done in the OpenJDK sandbox repo.
>> We backported the required changes to an OpenJDK 11 mirror:
>> https://github.com/johanvos/openjdk-mobile11/tree/packager
>>
>> With this, we created modified OpenJDK 11 builds that contain the packager
>> (wrapper/exe + module including native library). They can be downloaded
>> and
>> tested/used at
>>
>> http://download2.gluonhq.com/jpackager/11/jdk.packager-linux.zip
>> http://download2.gluonhq.com/jpackager/11/jdk.packager-osx.zip
>> http://download2.gluonhq.com/jpackager/11/jdk.packager-windows.zip
>>
>> For Windows, you have to unzip the bundle in the same directory as the
>> JDK,
>> as the packager wrapper expect to find the java binary at the same level.
>>
>> Note that these are not products. We use them internally to create
>> installers (e.g. we're using them for Scene Builder 11 and that works
>> fine), and they do what we expect them to do, but there are no guarantees
>> of course so at least for now I recommend using them in development only
>> (or even better, look at the changes and contribute to
>> https://bugs.openjdk.java.net/browse/JDK-8200758 or to this backport)
>>
>> - Johan
>>
>


More information about the openjfx-dev mailing list