[英]Eclpise ingo error:-'The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files'
this Error Appear when i extend exception class in eclipse indigo, but it works properly in net-beans 8.2 当我在eclipse indigo中扩展异常类时出现此错误,但它在net-beans 8.2中正常工作
package com;// error
public class ex extends Exception{
private static final long serialVersionUID = 1L;
public ex(String string) {
System.out.println(string);
}
}
There is nothing wrong in the posted code. 发布的代码没有错。
Eclipse Indigo should also work fine for the code you have posted above. Eclipse Indigo也适用于您上面发布的代码。 Possibly something else in the package/Project in same workspace which is giving that error ?
可能是同一个工作区中的包/项目中的其他东西给出了这个错误?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.