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我试图运行与lti-民用下载附带的CaptureSystemTest.java。我在Eclipse中将这个类添加到我自己的包中,并添加了lti下载附带的所有jars。
我在堆栈上看了一个类似的问题,唯一的答案是向程序中添加以下代码:
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-民间应用程序开发?
我是说,我需要做什么?比如加装罐子等等?
发布于 2013-03-28 08:17:56
我不知道什么是LTI-民用的,但通常第三方库被打包成jars,您必须将它包含在构建类路径中。搜索可以将jars添加到类路径的各种方法,如这教程。
https://stackoverflow.com/questions/15676894
复制相似问题