Re: NetBeans 11.0-vc4 Can't Set Source Code Level to 12

2019-04-12 Thread Geertjan Wielenga
Close the IDE Log. Problem solved. Gj On Fri, Apr 12, 2019 at 2:45 PM John Nashorn wrote: > Bummer. You're right Gj, it worked. Thanks. > BTW, does the IDE Log telling degrading the source level from 11 to 1.8 > have any significance? It's currently flooding my IDE Log view. > > On 2019/04/12 1

Re: NetBeans 11.0-vc4 Can't Set Source Code Level to 12

2019-04-12 Thread John Nashorn
Bummer. You're right Gj, it worked. Thanks. BTW, does the IDE Log telling degrading the source level from 11 to 1.8 have any significance? It's currently flooding my IDE Log view. On 2019/04/12 12:29:07, Geertjan Wielenga wrote: > public class NewClass { > public static void main(String[] a

Re: NetBeans 11.0-vc4 Can't Set Source Code Level to 12

2019-04-12 Thread Geertjan Wielenga
public class NewClass { public static void main(String[] args) { var test="I believe I can fly"; } } I'm assuming you're doing the above since 'var' is local variable type inference, i.e., LOCAL. Gj On Fri, Apr 12, 2019 at 2:22 PM John Nashorn wrote: > Thanks Geertjan. I watch

Re: NetBeans 11.0-vc4 Can't Set Source Code Level to 12

2019-04-12 Thread John Nashorn
Thanks Geertjan. I watched your YouTube video and retried but failed again. Now I'm trying on Linux with OpenJDK 11 but it's the same. (1)CHECK: My `java -version` outputs: « openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+7) OpenJDK 64-Bit Server VM 18.9 (buil

Re: NetBeans 11.0-vc4 Can't Set Source Code Level to 12

2019-04-12 Thread Geertjan Wielenga
"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 wrote: > Hi All, > I'm currently using convenience binaries of NetBeans 11.0-vc4 on Windows > 10 (64 bit system), running with OpenJDK-12

NetBeans 11.0-vc4 Can't Set Source Code Level to 12

2019-04-12 Thread John Nashorn
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 inf