Any chances to have openjdk11-jre and openjdk12-jre?
Lev Serebryakov
lev at FreeBSD.org
Wed Apr 10 14:48:51 UTC 2019
On 10.04.2019 17:36, Michael Osipov wrote:
>> Ok, I know how to do minimal JRE for UniFi now (with openjdk11 or
>> openjdk12) but I'm not sure, that it could be packitized :-(
>
> ...and how? As you said, there is no official way to produce JREs now.
> Oracle has dropped it since the directory restructering..
By using Oracle-blessed way to package applications with JRE: by using
jdeps and jlink utilities. jdeps extract all modules needed by this
software (set of JARs) and jlink creates minimal directory which
contains everything is needed [1]. It is not general-purpose JRE for
system-wide installation, it is JRE tailored for this specific software,
but it is even better for my use case, as it is rather small (41MB!).
I'm adding options to UniFi port right now to be able to produce
self-sufficient UniFi package (turned off by default) with JDK11 or
JDK12 (on user choice), which brings it own minimal JRE and doesn't need
system-wide one, to use on appliance-like (read: NanoBSD-generated)
devices. I'll post PR later.
[1]
https://medium.com/azulsystems/using-jlink-to-build-java-runtimes-for-non-modular-applications-9568c5e70ef4
--
// Lev Serebryakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-java/attachments/20190410/5f5f88c2/attachment.sig>
More information about the freebsd-java
mailing list