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

我正在尝试运行CaptureSystemTest.javalti-civil 下载附带的。我已经将该类添加到我自己的包中,Eclipse并且添加了 lti-civil 下载附带的所有 jar。

我在堆栈上查看了与此类似的问题,唯一的答案是将以下代码添加到程序中:

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 );  

但是,FieldEclipse 给出了 18 条导入建议,将其标记为错误。

我的问题是:
如何开始使用 LTI-CIVIL 进行应用程序开发?
我的意思是,我需要做什么?像添加罐子等?

4

1 回答 1

2

我不知道什么是 LTI-CIVIL,但通常 3rd 方库被打包到 jars 中,你必须将它包含在你的构建类路径中。搜索可以将 jars 添加到类路径的各种方法,例如教程。

于 2013-03-28T08:17:56.563 回答