[問題] Iterator執行錯誤NoClassDefFoundError
各位前輩,以下是我的程式碼,
ITable results = query.execute();
Iterator<ITable> it = results.iterator();
System.out.println(it.hasNext());
當我執行程式時,就會編譯錯誤,錯誤的點在it.hasNext(),並出現錯誤訊息:
Exception in thread "main" java.lang.NoClassDefFoundError:
Lcern/colt/map/OpenIntObjectHashMap;
研究了許久,根據錯誤訊息找到的說法應該是classpath錯誤
但Iterator不是java內建的用法嗎?需要設定classpath?
不管重裝JDK還是JRE都無效....所以想問有其他的解決辦法嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.171.5.191
※ 文章網址: https://www.ptt.cc/bbs/java/M.1440129963.A.60A.html
※ 編輯: coldwind7810 (1.171.5.191), 08/21/2015 12:14:21
→
08/21 13:46, , 1F
08/21 13:46, 1F
→
08/21 13:59, , 2F
08/21 13:59, 2F
→
08/21 15:25, , 3F
08/21 15:25, 3F
→
08/23 13:20, , 4F
08/23 13:20, 4F
→
08/30 21:58, , 5F
08/30 21:58, 5F