I have an error in Netbeans I can’t make lambda expression

Asked

Viewed 62 times

-1

I’ve already changed JAVA_HOME: to C: Program Files Java jdk-11.0.4 but still I’m still having an error with Netbeans IDE 8.0.2 and 11.0 but the error persists.

That was the mistake:

lambda Expression not expected here lambda Expressions are not supported in -source 1.6 (use -source 8 or Higher to enable lambda Expressions.

1 answer

0


Your netbeans is set with jdk 1.6 you have to change in netbeans conf:

Find the Folder where netbeans is installed
C: Program Files Netbeans X.x etc netbeans.conf

Change the variable below by pointing to jdk 1.8 that you have there
netbeans_jdkhome="C: Program Files Java jdk1.8xxxxx"

  • Thanks I managed to arrange

Browser other questions tagged

You are not signed in. Login or sign up in order to post.