最近在学习中发现,有些代码写完之后会报错:Multiple markers at this line - The type java.io.ObjectInputStream cannot be resolved.后来上网查了一下,原因是JDK版本问题,我从JDK1.8降到了1.6
步骤:
1、点击Window —> Preferences
2、点击Java —> InstalledJREs —> 选择Sun JDK1.6.9——13 ,最后点击OK 就行了。
最近在学习中发现,有些代码写完之后会报错:Multiple markers at this line - The type java.io.ObjectInputStream cannot be resolved.后来上网查了一下,原因是JDK版本问题,我从JDK1.8降到了1.6
1、点击Window —> Preferences
2、点击Java —> InstalledJREs —> 选择Sun JDK1.6.9——13 ,最后点击OK 就行了。