javac: invalid target release: 1.8

前端 未结 15 808
死守一世寂寞
死守一世寂寞 2021-01-30 12:22

I recently downloaded JDK 1.8.0.0_06 that comes bundled with NetBeans. I then got to find out that my JavaFx project, that I have been developing in Java 1.7 won\'t compile in J

15条回答
  •  醉酒成梦
    2021-01-30 13:03

    I got the same issue with netbeans, but mvn build is OK in cmd window. For me the issue resolved after changing netbeans' JDK (in netbeans.conf as below),

    netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_91"


    Edit: Seems it's mentioned here: netbeans bug 236364

提交回复
热议问题