"var" declarations were introduced in JDK 10. https://www.youtube.com/watch?v=GB1tY_qrLrU
Hope it helps, Gj On Fri, Apr 12, 2019 at 11:00 AM John Nashorn <[email protected]> wrote: > Hi All, > I'm currently using convenience binaries of NetBeans 11.0-vc4 on Windows > 10 (64 bit system), running with OpenJDK-12 , etc. > > I'm changing my projects source code level from 1.8 to 12 but unable to > use new language features coming with new versions of Java, such as local > variable type inference (aka var declarations). > > I've observed these lines in my "IDE Log" repeating multiple times: > > « > Even though the source level of > C:\Users\pcUserName\Documents\NetBeansProjects\ProjectName\src\main\webapp;C:\Users\pcUserName\Documents\NetBeansProjects\ProjectName\src\main\resources > is set to: 12, java.util.zip.CRC32C cannot be found on the system module > path: > Changing source level to 1.8 > » > > I tried using Java 11 but it was the same: couldn't use Java 11 as it was > degraded to 1.8. > > I've searched on this mail list and on the internet but couldn't find > anything solid; other than a mail thread Glenn Holmer started as I recall, > which didn't end up with a solution. > What can/should I do so that I can use Java 12? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >
