I suspect you have multiple java's coming in to play (1) the JDK compiled,
and the (2) Java Runtime Environment which may conflict.  In general you
can't run something compiled with a newer version without a little effort
in some cases.  So if you have a version with some new features not yet
supported, then the old one can't necessarily support that.

May want to check the PATH, JAVA_HOME, "java --version", and possibly the
netbeans\etc\netbean.conf jdk_home variable to see if there are some
conflicting versions installed.

When you do mvn --version it should also list what java it's leveraging.
It's possible the maven may be trying to run with one version even though a
newer version is also present on the system.

Eric

Eric Bresie
[email protected]


On Sat, Aug 27, 2022 at 1:15 PM Patrik Karlström <[email protected]> wrote:

> Den sön 21 aug. 2022 kl 20:13 skrev Eric Bresie <[email protected]>:
>
> > One of the errors mentions trying to run an app compiled on a newer
> version
> > (18) while running with an older JRE (11).
> >
> > See https://javaalmanac.io/bytecode/versions/
> >
> > Have you cleaned and build with current JDK and JRE?
> >
>
> Yes, it's built from scratch with a current jdk.
>
>
>
> > Is your maven using the correct JDK?
> >
>
> It sure looks that way when I check the first line in netbeans output
> window when trying to run a file.
>

Reply via email to