when i package my code, i get this error Error:(13,48) java: lambda expressions are not supported in -source 6.
I tried installing different JDK, but doesnt change. I tried jdk 11, 1.8, 13.
when i package my code, i get this error Error:(13,48) java: lambda expressions are not supported in -source 6.
I tried installing different JDK, but doesnt change. I tried jdk 11, 1.8, 13.
You need to specify in the pom the java version your project uses. Add this section to your pom.xml to specify java 8 for instance
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>