apache 導包問題

The type org.apache.commons.lang.exception.NestableException cannot be resolved. It is indirectly referenced from required .class files問題


使用commons-configuration讀取配置文件時,需要拋出相應異常,這時會出現個小小的問題,Java文件頂部出現紅色的XX,將鼠標放在紅色的XX上面,同時按下F2,顯示的錯誤信息如下:The type org.apache.commons.lang.exception.NestableException cannot be resolved. It is indirectly referenced from required .class files。其實從信息裏面,很容易看出,是少了jar包,即:commons-lang.jar。導入即可解決問題,具體這個jar是作什麼用的,官網上已經說明得很清楚了。


http://www.kiki88.cn/?post=107
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章