Exception in thread "main" java.lang.Error: Unresolved compilation problems:
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
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
System cannot be resolved
Scanner cannot be resolved to a type
Scanner cannot be resolved to a type
System cannot be resolved to a variable
String cannot be resolved to a type
String cannot be resolved to a type
System cannot be resolved
System cannot be resolved
System cannot be resolved
System cannot be resolved
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
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
System cannot be resolved
Scanner cannot be resolved to a type
Scanner cannot be resolved to a type
System cannot be resolved to a variable
String cannot be resolved to a type
String cannot be resolved to a type
System cannot be resolved
System cannot be resolved
System cannot be resolved
System cannot be resolved
at com.kobegoal.exercise.exercise1.main(exercise1.java:30)
问题来源:JDK未绑定,project->preference->java bulid path中的library列表下绑定jdk的安装路径。

本文详细介绍了如何解决Java项目中遇到的JDK未绑定导致的编译错误问题,通过调整Java Build Path来正确绑定JDK安装路径,避免了String、System等关键字无法解析的情况。
6872

被折叠的 条评论
为什么被折叠?



