1
Exception in thread "main" com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil in java.library.path
at com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(NativeCaptureSystemFactory.java:24)
at pst.CaptureSystemTest.main(CaptureSystemTest.java:27)
Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(NativeCaptureSystemFactory.java:21)
... 1 more
我試圖運行lp-civil下載附帶的CaptureSystemTest.java
。我已將該課程添加到Eclipse
中的我自己的包中,並添加了lti-civil下載的所有jar包。UnsatifiedLinkException java - 由LTI-CIVIL引起的
我看了一個類似的問題,這個堆棧,唯一的解決辦法是將下面的代碼添加到程序:
System.setProperty("java.library.path", "C:/Work/lti-civil/native/win32-x86/");
Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
fieldSysPath.setAccessible(true);
fieldSysPath.set(null, null);
然而,Field
被標記爲錯誤與Eclipse給予進口18點建議。
我的問題是:
如何開始使用LTI-CIVIL進行應用程序開發?
我的意思是,我需要做什麼?像添加罐子等?