Change JRE in NetBeans project

a 夏天 提交于 2019-11-27 09:27:07
OliBlogger
  • In the Project tab, Right Click on the Project and select Properties.In the Library category select Java Platform JDK 1.6.
  • Then, in the Source category select Source/Binary Format JDK6.
  • This assumes that you installed JDK 1.6 and NetBeans knows about this.
  • JDK 1.6 must be known to NetBeans as a Java Platform.
  • From the menu select Tools->Java Platform Manager.
  • If JDK 1.6 is not in the list you can add it there.

In Netbeans 8.2,

  • right click the project, select Properties
  • under the menu build/compile, select java platform from drop down menu

There is a bug in NetBeans 8.0.2

When undertaking the above steps in changing JRE or JDK for a project, NetBeans attempts to save the project with the new JDK (9 in this instance) but it goes into an infinite loop and eventually gives an OutOfMemoryError:

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