Java - 此行的多个标记 - java.io.ObjectInputStream

时间:2018-02-10 10:48:33

标签: java eclipse swing jframe objectinputstream

我有一个测试课。

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



}

我使用eclipse。该类在第1行给出错误。 错误:

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

为什么我看到这个错误。通常它应该工作。我该如何解决这个错误?

1 个答案:

答案 0 :(得分:0)