【Java Web学习】The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced ……

时间:2024-03-24 14:36:01

问题:在创建Web工程时,发生了以下错误:

【Java Web学习】The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced ……

问题的原因:

1.配置tomcat7.0时候自己设置了jre的版本1.8,而没有用myeclipse10自带的jre1.6,导致了出现了差错!

两种解决的办法:

1.点击windows--->preference---->搜索框上输入install JREs----->选择MyEclipse的默认路径下的jdk

【Java Web学习】The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced ……

2.右击project------》properties---》java bulid  path----》libraries----》add library----》

【Java Web学习】The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced ……

jre system library--》

【Java Web学习】The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced ……

Execution environment选上,finsh,之后应该看到libraries下多了系统自带的jdk,然后就可以了。

【Java Web学习】The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced ……

 

【Java Web学习】The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced ……