如何為 NetBeans 專案添加類別庫,下面以添加 Apache Commons-CSV 讀取CSV檔案的類別庫為例。
下載及解開 Apache Commons-CSV 類別庫
URL: https://commons.apache.org/proper/commons-csv/download_csv.cgi
點選 Binaries/commons-csv-1.10.0-bin.zip
解壓後路徑: C:\...\commons-csv-1.10.0
從 NetBeans 左欄面板,如下點選填入名稱,類別檔,原始碼,註解檔路徑。
Projects/Project Name/Libraries/Add Library.../Create
Library Name: Commons-CSV
Library Type: Class Libraries
Classpath/Library Classpath: 類別檔路徑
Add JAR/Folder...
C:\...\commons-csv-1.10.0\commons-csv-1.10.0.jar
Sources/Library Sources: 原始碼路徑
Add JAR/Folder...
C:\...\commons-csv-1.10.0\commons-csv-1.10.0-sources.jar
Javadoc/Library Javadoc: 註解檔路徑
Add JAR/Folder...
C:\...\commons-csv-1.10.0\apidocs
設定類別檔,原始碼,註解檔的完整路徑,安裝類別庫之後,NetBeans專案就可以使用如下類別庫套件:
org.apache.commons.csv.*
遇到有疑問的類別或方法,可選擇其名字,按如下選單或快速鍵,查看其註解或原始碼:
看註解: Source/Show Documentation (Ctrl-Shift-Space)
看原始碼: Navigate/Go to Source (Ctrl-Shift-B)
how to add libraries for a NetBeans project
訂閱:
張貼留言 (Atom)
how to deal with metric scale inconsistency in topn recommendation evaluation
🎯 推薦系統一般會回傳前 N 個排名的物品清單給用戶,稱為 Top‑N 推薦。 遇到推薦模型須要訓練及評估時,習慣先蒐集用戶與物品的互動資料,再將資料拆分成沒有重疊的訓練集及測試集。 模型在訓練時只看得到訓練集,評估時則拿測試集作為驗證的標準答案,以免作...
沒有留言:
張貼留言