RE: Java 17 and NetBeans

2021-10-01 Thread Richard Grin
chard Grin Cc : NetBeans Mailing List Objet : Re: Java 17 and NetBeans Richard, Typically the default that the maven compiler assumes is not the Java version you run it on. You need to set the release to 17 in your case. Easiest is to do that in a property in the pom file. The property is

Re: Java 17 and NetBeans

2021-10-01 Thread Pieter van den Hombergh
Richard, Typically the default that the maven compiler assumes is not the Java version you run it on. You need to set the release to 17 in your case. Easiest is to do that in a property in the pom file. The property is named maven.compiler.release On Fri, Oct 1, 2021, 14:07 Richard Grin wrote:

Java 17 and NetBeans

2021-10-01 Thread Richard Grin
Hello, I created a Maven project with Java 17 and I received an error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project XXXWithRecord: Fatal error compiling: error: release version 17 not supported -> [Help 1] In order to write