我的一个系统,以前是myEclipse开发的,现在我把它导入到NetBeans中。开始遇到了一些找不到form中的get/set 方法问题,后来我把form中的get/set都删了,又重新生成了一遍,问题解决了。但现在又来一个问题。。就是下面的。。。编译期没有任何问题。这是运行时页面报出的错误。
java.lang.Error: Unresolved compilation problems:
The import java.util.HashMap cannot be resolved
The import java.util.Iterator cannot be resolved
The import java.util.List cannot be resolved
The import java.util.Map cannot be resolved
The import java.util.ResourceBundle cannot be resolved
The import java.util.Set cannot be resolved
The import javax.servlet.http.HttpServletRequest cannot be resolved
The import javax.servlet.http.HttpServletResponse cannot be resolved
The import javax.servlet.http.HttpSession cannot be resolved
The hierarchy of the type LoginAction is inconsistent
ResourceBundle cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
HttpSession cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
HttpSession cannot be resolved to a type
HttpSession cannot be resolved to a type
HttpSession cannot be resolved to a type
HttpSession cannot be resolved to a type
请问这是为什么?似乎是环境变量的问题?可是我的环境变量都配置了啊。。
[b]问题补充:[/b]
谢谢你的回答 。。我在NetBeans下面又建了一遍工程。。。这样给搞定了。。。