Not a Maven issue, but if you didn't install the JDK then you'll have to
add it with `sudo update-alternatives --install`
If the JAVA_HOME env var is set Maven will use that instead.
Delany

On Mon, 14 Nov 2022 at 09:29, Raivo Rebane <ra...@r-systems.ee> wrote:

> Hi
>
> raivo@Hydra:~/teamengine$ sudo update-alternatives --list java
> /usr/lib/jvm/java-11-openjdk-amd64/bin/java
>
> So, it gives only one alternative
>
> But :
> raivo@Hydra:~/teamengine$ ll /usr/java
> total 16
> drwxr-xr-x  4 root root 4096 nov    8 17:25 ./
> drwxr-xr-x 15 root root 4096 aug   16  2020 ../
> drwxr-xr-x  9 root root 4096 nov    8 18:25 jdk1.8.0_261-amd64/
> drwxr-xr-x  7 root root 4096 nov    8 18:26 jre1.8.0_351/
>
> ANd why sudo apt install gives error in any case ?
>
> Regards
> Raivo
>
> On 14.11.22 07:36, Arnaud bourree wrote:
> > Sorry, the exact command name is update-alternatives
> > See
> >
> https://manpages.ubuntu.com/manpages/trusty/man8/update-alternatives.8.html
> >
> > Le dim. 13 nov. 2022, 19:08, Raivo Rebane <ra...@r-systems.ee> a écrit :
> >
> >     Hi
> >
> >     I did
> >
> >     raivo@Hydra:$ sudo update-alternative --list java
> >     [sudo] password for raivo:
> >     sudo: update-alternative: command not found
> >
> >     And got error
> >
> >     Raivo
> >
> >     On 13.11.22 18:21, Arnaud bourree wrote:
> >     > sudo upgrade-alternative --config
> >

Reply via email to