eclipse导入一个项目之后没有JRE System Library怎么办?

导入一个项目时出现
Multiple markers at this line
	- The type java.lang.Object cannot be resolved. It is indirectly referenced from 
	 required .class files
	- The type java.lang.String cannot be resolved. It is indirectly referenced from 
	 required .class files
报错信息
 
  
 
  
JRE System Library 包没有导入
解决方法: 
  
右键项目工程-->>properties->>java bulid path -->>>libraries -->>add library -->>JRE System Library
ps:下图红圈提示,选择红圈中选择项就可以导入了
 
  
最后,直接finish就导入成功了
 
  
 
 

你可能感兴趣的:(java)