Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 2020 01:12:01 +0200
From:      Klaus Cucinauomo <maciphone2@googlemail.com>
To:        Greg Lewis <glewis@eyesbeyond.com>, freebsd-java@freebsd.org, ronald-lists@klop.ws, roberthuff@rcn.com
Subject:   Re: testing different Java dependency?
Message-ID:  <98B773F0-A6BD-409F-B4E5-A3AD5800888D@googlemail.com>
In-Reply-To: <04b6b209-6ca1-9ed2-a9cd-84b036359e5a@eyesbeyond.com>
References:  <24392.32831.687208.740013@jerusalem.litteratus.org> <04b6b209-6ca1-9ed2-a9cd-84b036359e5a@eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
some time ago I had described how I switch java versions  system wide =
here :

=
https://forums.freebsd.org/threads/howto-permanently-set-switch-shell-path=
-to-java-vm.71419/

Regards
Klaus=20

> Am 04.09.2020 um 00:05 schrieb Greg Lewis <glewis@eyesbeyond.com>:
>=20
> The environment variable you're probably looking for is
> JAVA_PREFERRED_PORTS.  Whether that has the effect you want will also
> depend on what the port allows in terms of Java versions.  E.g. if a
> port has JAVA_VERSION=3D11 then it is signalling that will only use a =
JDK
> of that version, no matter what you set as your preference.
>=20
> Also, as the previous reply implied, how that effects individual ports
> at run time isn't consistent.
>=20
> -- Greg



> Am 28.08.2020 um 13:49 schrieb Ronald Klop <ronald-lists@klop.ws>:
>=20
> Hi,
>=20
> Can't you just install openjdk14 and start the application with =
/usr/local/openjdk14/bin/java?
>=20
> A port like net-mgmt/unifi5 has a rc.conf setting =
unifi_java_home=3D"/usr/local/openjdk11" which you can set to deviate =
from the default JDK.
>=20
> Regards,
> Ronald.

>=20
> On 2020-08-27 20:55, Robert Huff wrote:
>> Hello:
>> Java novice here.
>> Suppose I have a port - FOO - built and running with openjdk-12.
>> I'd like to test it with openjdk-14 _without_ changing the
>> settings in make.conf.
>> Is there an command-line arguement I can feed make that will
>> cause that to happen?  Assume I have installed openjdk-14.
>> (I looked at bsd.java.mk ... my eyes glazed over ... and I backed
>> carefully out of the room.)
>>=20
>>=20
>> Respectfully,
>>=20
>>=20
>> Robert Huff
>>=20
>> _______________________________________________
>> freebsd-java@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-java
>> To unsubscribe, send any mail to =
"freebsd-java-unsubscribe@freebsd.org"
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to =
"freebsd-java-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98B773F0-A6BD-409F-B4E5-A3AD5800888D>