【报错】String cannot be resolved to a type解决方案

JSP页面中出现“String cannot be resolved to a type”字符串无法解释为类型

解决方案

1.右键项目名,选择Properties

【报错】String cannot be resolved to a type解决方案_第1张图片

2.选择Java Build Path,选择Libraries,选中JRE System Library[jdk1.8.0_151],点击Edit
【报错】String cannot be resolved to a type解决方案_第2张图片

3.选中“Workspace default JRE(Sun JDK 1.8.0_102)”→Finish

【报错】String cannot be resolved to a type解决方案_第3张图片

你可能感兴趣的:(java)