error: option -Xbootclasspath/p: not allowed with target 12 (Netbeans 11.0)

前端 未结 4 1502
有刺的猬
有刺的猬 2020-12-06 14:18

I am upgrading my IDE to newest versions of netbeans (11.0) and jdk (12.0). When i make a simple basic Web Application With Ant Project, i can\'t compile it because the outp

相关标签:
4条回答
  • 2020-12-06 14:44

    I just noticed that netbeans 11 recommends using JDK 8 with it instead of newer versions. So i'm going back to JDK 8.. ("problem" solved).

    0 讨论(0)
  • 2020-12-06 14:55

    To compile the project on JDK12, simply set empty value to endorsed.classpath= at project.properties file.

    0 讨论(0)
  • 2020-12-06 14:56

    I changed the

    -Xbootclasspath/p   
    

    to

    -J-Xbootclasspath/a
    

    It's working for me.

    0 讨论(0)
  • 2020-12-06 15:02

    -Xbootclasspath and -Xbootclasspath/p: (prepend) were removed in JDK9. You can still use -Xbootclasspath/a: to append stuff to the bootstrap class path.

    0 讨论(0)
提交回复
热议问题