var keyword not reconized in JDK 10

前端 未结 2 776
耶瑟儿~
耶瑟儿~ 2021-01-15 00:33

I have installed netbeans (Apache version) with JDK 10 successfully, but can\'t use var keyword in my project, It keep saying cannot find symbol. A

2条回答
  •  再見小時候
    2021-01-15 01:17

    If you are using maven project, make sure that maven.compiler.source and maven.compiler.target are all pointing to 10.

        
           10
           10
        
    

提交回复
热议问题