作者wfgh (lyle)
看板Eclipse
標題[問題] access restriction
時間Tue Nov 16 15:09:08 2010
source code:
import Jama.*
public class svd {
public static void main(String[] args) {
Matrix A = new Matrix(new double[2][2]);
}
}
==============================================================
這是其中一段Error message:
Access restriction: The type Matrix is not accessible due to restriction on
required library C:\Program Files\Java\jre1.6.0_06\lib\ext\Jama-1.0.2.jar
我是去拿別人包好的jar檔來用(Jama-1.0.2.jar)
並把它放在\lib\ext裡
Matrix是Java package裡的一個class
請問為什麼會出現上面那段error呢?
我google過好像eclipse會有這個問題
但都只找到解決的方法就是改一些eclipse的設定
我想知道原因
感恩:)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.240.210.205
→ zzgodgundam:我怎麼覺得是7或Vista的權限限制?把這jar放到專案目 11/20 23:52
→ zzgodgundam:錄下再幫專案設定library試試 11/20 23:52
→ wfgh:幫專案設定library是一定可行的我知道,我只是想問為何放到 11/21 00:35
→ wfgh:ext裡會出現這樣的錯誤。我是用windows XP 11/21 00:36