Myeclipse 报错:Multiple markers at this line - The type java.io.ObjectInputStream cannot be resolved.

最近在学习中发现,有些代码写完之后会报错: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 就行了。

猜你喜欢

转载自blog.csdn.net/weixin_42468607/article/details/103998674