MyEclipse报错:String cannot be resolved to a type

代码没错,但jsp页面总是出现红叉叉

往MyEclipse导入项目后,java 类总是报出n 多红叉,实在是惨不忍睹,String cannot be resolved to a type 都出来了,

开始以为是Myeclipse的事,但重启后发现问题还存在,于是在网上搜,结果说是JDK的问题

解决方法:

右键项目: properties–java build path- Libraries

找到JRE System Library, 发现 JRE System Library 1.7 后面是unbond ,

点击edit ,alternate jre 选择JDK的安装路径. 这样, 问题就解决

原文链接https://www.cnblogs.com/lzb1991/p/5800886.html

猜你喜欢

转载自blog.csdn.net/weixin_44174536/article/details/91381917