Compiling any JavaFX project in NetBeans returns Unsupported major.minor version 52.0

依然范特西╮ 提交于 2019-12-04 01:28:03
GoFish

You have to change netbeans_jdkhome in netbeans.conf file.

  • Close NetBeans if it is running.
  • Find the file C:\Program Files\NetBeans 7.3\etc\netbeans.conf
  • Change the value for the parameter "netbeans_jdkhome" to the desired JDK version
    E.g.: netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0_21"
  • Save the file and start NetBeans again.

Source + more detailed information: https://joanpaon.wordpress.com/2013/06/11/how-to-change-netbeans-default-java-platform-2/

I un-unstalled JDK 7, un-installed NetBeans, re-installed NetBeans and re-compiled. No errors anymore. (when I un-installed, I left the install directory and settings. When I re-installed, I had to make a new directory but NetBeans must've kept the old settings because I didn't need to change preferences or re-add plugins). I then re-installed JDK 7 (because other projects are in Java 7), re-tested and still working.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!