public static List<TreeInfo> retrieveNodeInfos(){
}
提示List错误,
Error:The type Class is not generic; it cannot be parameterized with arguments
window->preferences->java->compier 我也设置为6.0了,可还是报错。
要JDK 1.4++以后才支持泛型 你用的JDK是1.4 ++以上的吗?
你确定Treeinfo类在你的路径里面么?
不支持泛型 改6.0一下的
JDK在1.5及1.5后才支持泛型的。是一种新特性。
JDK 是指你机器上装的JDK 在MyEclipse里面 更换JDK版本,就是添加安装后jre的路径
具体操作:
window->preferences->java->InstalledJRES
把你JDK装的路径选过去,会自动加载jar包