* [gentoo-user] How to invoke non-selected versions of 'java'?
@ 2022-02-04 21:49 Grant Edwards
2022-02-04 22:28 ` Arve Barsnes
0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2022-02-04 21:49 UTC (permalink / raw
To: gentoo-user
I've got two "slots" of java currently installed (8 and 11). I see how
one uses "eselect java" to contol which one is invoked by /usr/bin/java.
How does one manually invoke non-selected version(s) of java?
For other slotted things like gcc and python, you can use pythonX.Y or
gcc-X.Y.Z to invoke the non-selected version.
What's the equivalent for java?
--
Grant
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] How to invoke non-selected versions of 'java'?
2022-02-04 21:49 [gentoo-user] How to invoke non-selected versions of 'java'? Grant Edwards
@ 2022-02-04 22:28 ` Arve Barsnes
2022-02-04 23:47 ` [gentoo-user] " Grant Edwards
0 siblings, 1 reply; 4+ messages in thread
From: Arve Barsnes @ 2022-02-04 22:28 UTC (permalink / raw
To: Gentoo
On Fri, 4 Feb 2022 at 22:49, Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
> I've got two "slots" of java currently installed (8 and 11). I see how
> one uses "eselect java" to contol which one is invoked by /usr/bin/java.
>
> How does one manually invoke non-selected version(s) of java?
>
> For other slotted things like gcc and python, you can use pythonX.Y or
> gcc-X.Y.Z to invoke the non-selected version.
>
> What's the equivalent for java?
I don't think there is any convenient out of the box link like for
python or gcc, but you could make equivalent links if you want.
Otherwise you should use the paths in your commands. On this box I
have:
/usr/lib64/openjdk-8/bin/java
/usr/lib64/openjdk-11/bin/java
Regards,
Arve
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: How to invoke non-selected versions of 'java'?
2022-02-04 22:28 ` Arve Barsnes
@ 2022-02-04 23:47 ` Grant Edwards
2022-02-05 7:51 ` Arve Barsnes
0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2022-02-04 23:47 UTC (permalink / raw
To: gentoo-user
On 2022-02-04, Arve Barsnes <arve.barsnes@gmail.com> wrote:
> On Fri, 4 Feb 2022 at 22:49, Grant Edwards <grant.b.edwards@gmail.com> wrote:
>>
>> I've got two "slots" of java currently installed (8 and 11).
>> [...]
>> How does one manually invoke non-selected version(s) of java?
>> [...]
>
> I don't think there is any convenient out of the box link like for
> python or gcc,
That was what I concluded, but I was a bit surprised.
> but you could make equivalent links if you want. Otherwise you
> should use the paths in your commands. On this box I have:
>
> /usr/lib64/openjdk-8/bin/java
> /usr/lib64/openjdk-11/bin/java
Yep. I've currently got '-bin' versions installed so here it's:
$ find /opt/{icedtea*,openjdk*} -type f -executable -name 'java'
/opt/icedtea-bin-3.16.0/jre/bin/java
/opt/icedtea-bin-3.16.0/bin/java
/opt/openjdk-bin-11.0.14_p9/bin/java
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: How to invoke non-selected versions of 'java'?
2022-02-04 23:47 ` [gentoo-user] " Grant Edwards
@ 2022-02-05 7:51 ` Arve Barsnes
0 siblings, 0 replies; 4+ messages in thread
From: Arve Barsnes @ 2022-02-05 7:51 UTC (permalink / raw
To: Gentoo
On Sat, 5 Feb 2022 at 00:48, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> Yep. I've currently got '-bin' versions installed so here it's:
>
> $ find /opt/{icedtea*,openjdk*} -type f -executable -name 'java'
> /opt/icedtea-bin-3.16.0/jre/bin/java
> /opt/icedtea-bin-3.16.0/bin/java
> /opt/openjdk-bin-11.0.14_p9/bin/java
You should also have the /opt/openjdk-bin-11 symbolic link, so the bin
versions also have a "permanent" path to use in your commands. They're
not in your path since it is the folder names that are versioned, and
not the executables.
Regards,
Arve
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-02-05 7:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-04 21:49 [gentoo-user] How to invoke non-selected versions of 'java'? Grant Edwards
2022-02-04 22:28 ` Arve Barsnes
2022-02-04 23:47 ` [gentoo-user] " Grant Edwards
2022-02-05 7:51 ` Arve Barsnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox