Re: [gentoo-user] How to invoke non-selected versions of 'java'?

2022-02-04 Thread Arve Barsnes
On Fri, 4 Feb 2022 at 22:49, Grant Edwards  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



[gentoo-user] How to invoke non-selected versions of 'java'?

2022-02-04 Thread Grant Edwards
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