在NetBeans项目中更改JRE [英] Change JRE in NetBeans project
本文介绍了在NetBeans项目中更改JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用JRE 1.4环境的NetBeans项目,这意味着我不能使用泛型。
I have a NetBeans project which is using the JRE 1.4 environment which means I can't use generics.
如何将项目更改为使用1.6(?所以我可以使用泛型。
How can I change the project to use 1.6 (?) so I can use generics.
推荐答案
- 在项目选项卡中,右键单击项目并选择
属性
。在库类别中,选择Java Platform JDK 1.6
。 - 然后,在Source类别中选择
Source / Binary
格式JDK6
。 - 这假设你安装
JDK 1.6
和NetBeans
知道
this。 -
JDK 1.6
必须知道NetBeans
作为Java平台。 - 从菜单中选择工具 - > Java平台管理器。
- 如果
JDK 1.6
不在列表中,你可以在那里添加。 - In the Project tab, Right Click on the Project and select
Properties
.In the Library category selectJava Platform JDK 1.6
. - Then, in the Source category select
Source/Binary
FormatJDK6
. - This assumes that you installed
JDK 1.6
andNetBeans
knows about this. JDK 1.6
must be known toNetBeans
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.
这篇关于在NetBeans项目中更改JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文