-1

I have a test class.

import javax.swing.JFrame;
public class TestWindow extends JFrame{



}

I use eclipse. This class gives an error on line 1. Error:

Multiple markers at this line
- 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

Why i see this error. Normally it should work. How can i fix this error ?

2
  • I think you have a confused Eclipse, or a damaged Eclipse or Java installation. The compiler cannot find the ".class" file for a class that should be in the standard Java class library. Try restarting Eclipse, cleaning the project, restarting Eclipse with the "--clean" option. If none of these help, consider reinstalling. Commented Feb 10, 2018 at 11:40
  • I've tried all your advice. Now I'm reinstalling elipse IDE. Commented Feb 10, 2018 at 12:07

1 Answer 1

0

You can check this link : The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

I guess it will answer your query.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.