Home » Java » The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

Posted by: admin July 12, 2018 Leave a comment

Questions:

I have downloaded Eclipse and tried to create a sample servlet program but I got following error

The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

I have configured build path correctly.
I am using Java 8 and Apache Tomcat 7 and libraries for both are referenced correctly.

Problem is specifically for Java EE only. Ordinarily Java SE projects are running fine.

Answers: