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

      今天在做Java枚举相关练习时,MyEclipse 编译报了这个错误:

           Multiple markers at this line - The type java.io.ObjectInputStream cannot be resolved.

1.出错原因

网上查了以后,说是因为JDK版本太高的问题

2.修改

window->preference->Java->Installed JREs->选择低版本的JDK->ok
ps:这里由于我默认使用的JDK1.8,所以选择可以MyEclipse自己的JDK(即Sun JDK 1.6.0_13)

这样使用低版本JDK来编译问题就解决了。

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

3.小结

版本兼容问题