Please check one of available tutorials like
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-22-04

Java 11 is good. You Just need an SDK and not only JRE.

Sylwester

sob., 12 lis 2022 o 15:36 Raivo Rebane <ra...@r-systems.ee> napisaƂ(a):
>
> Hi
>
> Sorry for late answer, but I feel yesterday and today moning yourself
> sick and thought, that I got COVID.
>
> But now I feel better.
>
> I set environment variables and deploy starts to work.
>
> But compiling doesnot. It gives me :
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile
> (default-compile) on project teamengine-realm: Compilation failure
> [ERROR] No compiler is provided in this environment. Perhaps you are
> running on a JRE rather than a JDK?
>
> And thats true.
>
> raivo@Hydra:~/teamengine$ java -version
> openjdk version "11.0.16" 2022-07-19
> OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
> OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04,
> mixed mode, sharing)
>
> but
>
> JAVA_HOME=/usr/java/jre1.8.0_351/
>
> I don't know how to set Java default version to Java8 in Ubuntu.
>
> What I have to do ?
>
> Regards
>
> Raivo
>
> On 11.11.22 12:52, Karl Heinz Marbaise wrote:
> > Hi,
> > On 11.11.22 08:40, e...@zusammenkunft.net wrote:
> >> Hello,
> >>
> >> I think the /usr/bin/mvn (i.e. "not in path") and /usr/share/maven/
> >> points
> >> to a non-pristine distribution shipped Maven (Debian?).
> >
> > The distro we are talking about is Ubuntu..
> >
> >
> >>
> >> I would start with using an upstream Maven distribution archive to
> >> make sure
> >> its no packaging error. )And also use a supported JDK by fixin PATH
> >> and JAVA_HOME.
> >>
> >> If its a packaging problem the Distribution would be the right place
> >> to get support.
> >
> > It does not look like that...
> >
> >
> >
> >> (But we already mentioned a few ttimes as a developer you might want
> >> to have multiple pristine maven installs independent of your
> >> distribution anyway).
> >>
> >> Gruss
> >> Bernd
> >>
> >>
> >
> > Kind regards
> > Karl Heinz Marbaise
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to