1. 程式人生 > >Eclipse如何匯入jar包(referenced libraries)

Eclipse如何匯入jar包(referenced libraries)

原帖 http://blog.csdn.net/wave2/article/details/10813043

專案中沒有referenced libraries 設定如下:

在Package Explorer這個窗體中,右上角有個下拉小三角,點選 ---> Filters ,在Select the elements to exclude from the view 下的複選框中,取消掉Libraries in projec前的√。

     如果還沒有解決,可能就是沒有選擇Show “referenced libraries” Node選項,這個選項同樣是在Package Explorer這個窗體中,點選右上角的下拉小三角出現。

圖解:

一、這裡是木有referenced libraries。

二、Package Explorer這個窗體中,右上角有個下拉小三角,點選Filters

0

三、看有沒有勾選Libraries in projec 如果被勾選了,去掉勾選


上述如果還是沒有出現referenced libraries,繼續往下看:

一、選中專案右鍵專案屬性(properties)  ---> java build path  ---> 切換到liberias選項卡 ---> 點選 add jars --->選中你專案web-inf 下的lib 就可以,然後點選新增,ok就行..................