Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2019 17:48:36 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Michael Osipov <1983-01-06@gmx.net>, "freebsd-java@FreeBSD.org" <freebsd-java@freebsd.org>
Subject:   Re: Any chances to have openjdk11-jre and openjdk12-jre?
Message-ID:  <bb8d518d-267f-a596-5fe3-16c33cee2f20@FreeBSD.org>
In-Reply-To: <85c57aa1-51c9-826e-0c8b-40009ee1a71a@gmx.net>
References:  <b579c0cf-ca2e-b895-26c1-e455dc600848@FreeBSD.org> <5b038d9d-808b-edea-dbf8-6eaa7fa4615a@FreeBSD.org> <051d2f70-675f-e5fe-7f1f-bd22e82329fc@FreeBSD.org> <85c57aa1-51c9-826e-0c8b-40009ee1a71a@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--qHki9xJCzd0pQmoS9i2Kp55boatpWcwfU
Content-Type: multipart/mixed; boundary="0HkyRN3pOr6A5if7lSlML2gSBOaeaiZdD";
 protected-headers="v1"
From: Lev Serebryakov <lev@FreeBSD.org>
Reply-To: lev@FreeBSD.org
To: Michael Osipov <1983-01-06@gmx.net>,
 "freebsd-java@FreeBSD.org" <freebsd-java@freebsd.org>
Message-ID: <bb8d518d-267f-a596-5fe3-16c33cee2f20@FreeBSD.org>
Subject: Re: Any chances to have openjdk11-jre and openjdk12-jre?
References: <b579c0cf-ca2e-b895-26c1-e455dc600848@FreeBSD.org>
 <5b038d9d-808b-edea-dbf8-6eaa7fa4615a@FreeBSD.org>
 <051d2f70-675f-e5fe-7f1f-bd22e82329fc@FreeBSD.org>
 <85c57aa1-51c9-826e-0c8b-40009ee1a71a@gmx.net>
In-Reply-To: <85c57aa1-51c9-826e-0c8b-40009ee1a71a@gmx.net>

--0HkyRN3pOr6A5if7lSlML2gSBOaeaiZdD
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 10.04.2019 17:36, Michael Osipov wrote:

>> =C2=A0 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 :-(
>=20
> ...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

--=20
// Lev Serebryakov


--0HkyRN3pOr6A5if7lSlML2gSBOaeaiZdD--

--qHki9xJCzd0pQmoS9i2Kp55boatpWcwfU
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAlyuAkRfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5
NkQxQ0EwQjVGNDMxOEI2NzRCMzMwQUVBQjAzQzU4QkZEQzQ3OEYACgkQ6rA8WL/c
R49dnw//fu0rdHvDAW9mFm5VcBzezRfKiViPQzBlYtMaulv3qSdkcEF3xKc65iOL
KmhgP3JDv0/8ZsC/9128SHwETOwjjBDeG1mArg5M0/DVgDsvXLYjBlOGqzcvZEuA
nfhlx9FBPtRFIugQYx0ef5KUG6vb+tVt+UrS2y9pPuqw3lqqCurcqEli/7WqaNME
a/Ee3LmuIBNVxM2lHSojQx/oSzLaai7Z/A0AvX9oX/Ryo0SG57zEl1uxTfsOwfIZ
PS3rS8CfVCJsP2BrWrMZZr+e+WtdPy4TY+Px0E9zE+jSgTuVV24YRfnfC8e7UxAo
eM9inVcy4GudX7im8HtYV1lG/73UDBu2UkQDU0vtZogIJocb16Fe5pGY+NPmguKE
JOdZdvUe7CKDf+r4gnVLdiwH1wNJhqTvIQDJGT8kXdYBtpifwzZlYODZ/0K4R6UP
TzJNWMggu3E0awCcn3OHjcMUX/xfOkcSebGhUzsh3BHUdcXNH1uT+E7KQLNHltOA
BKkdTboty2Q6KYJkhxIXsb9txihU8QjvJA1ioJHOAhWQn9tqcvc0EAsEOvYW5x9E
I10rNc4c5lAHkw20J2ByQxYXC46lff5/LZ29XgbtTNrZMjt93JBPGxOYiJTUXH4j
fAyCfOrbHVBS8aw9eFqDNogvzuip83S8ACFIsO5VOtFt7yPkYMA=
=tSeU
-----END PGP SIGNATURE-----

--qHki9xJCzd0pQmoS9i2Kp55boatpWcwfU--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb8d518d-267f-a596-5fe3-16c33cee2f20>