![](/img/trans.png)
[英]The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files
[英]Eclpise ingo error:-'The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files'
當我在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);
}
}
發布的代碼沒有錯。
Eclipse Indigo也適用於您上面發布的代碼。 可能是同一個工作區中的包/項目中的其他東西給出了這個錯誤?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.