当前位置: 代码迷 >> Eclipse >> myeclipse 开发环境上,提示 String cannot be resolved to a type
  详细解决方案

myeclipse 开发环境上,提示 String cannot be resolved to a type

热度:96   发布时间:2016-04-23 02:25:46.0
myeclipse 开发环境下,提示 String cannot be resolved to a type

在本地编译,java类总是报出n多红叉,惨不忍睹,String cannot be resolved to a type都出来了

解决方法:

project-properties--java build path -- libraries,

看 JRE System Library[1.6.0_05] 后面后unbond,点击edit,alternate jre 旁边的jdk1..6,选择jdk目录,重新编译没有问题了。这样,应该是jdk没有绑定的问题

  相关解决方案