net.sf.fmj.media.cdp.civil.CaptureDevicePlugger addCaptureDevices解决方法
Spark运行时报错,解决办法,将spark源码目录E:\MyeclipseWorkspace\spark\build\lib\dist\windows 下的civil.dll 文件拷贝到C盘jdk的bin目录下,即可。 错误代码如下: ----错误代码 start---- 010-11-15 10:56:11 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger addCaptureDevices 警告: com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: no civil in java.library.path 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 net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDevicePlugger.java:37) at net.sf.fmj.media.cdp.GlobalCaptureDevicePlugger.addCaptureDevices(GlobalCaptureDevicePlugger.java:18) at org.jivesoftware.sparkimpl.preference.media.MediaPreferencePanel.scanDevices
(MediaPreferencePanel.java:93) at org.jivesoftware.sparkimpl.preference.media.MediaPreferencePanel.<init>(MediaPreferencePanel.java:69) at org.jivesoftware.sparkimpl.preference.media.MediaPreference.<init>(MediaPreference.java:14) at org.jivesoftware.spark.preference.PreferenceManager.<init>(PreferenceManager.java:49) at org.jivesoftware.spark.SparkManager.getPreferenceManager(SparkManager.java:161) at org.jivesoftware.spark.filetransfer.SparkTransferManager.<init>(SparkTransferManager.java:172) at org.jivesoftware.spark.filetransfer.SparkTransferManager.getInstance(SparkTransferManager.java:130) at org.jivesoftware.spark.Workspace.buildLayout(Workspace.java:202) at org.jivesoftware.LoginDialog.startSpark(LoginDialog.java:1045) at org.jivesoftware.LoginDialog.access$3(LoginDialog.java:987) at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:612) at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:131) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.UnsatisfiedLinkError: no civil in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(NativeCaptureSystemFactory.java:21) ... 15 more javasound:主声音捕获驱:0 LINEAR, Unknown Sample Rate, 16-bit, Stereo, LittleEndian, Signed, FrameSize=32 bits LINEAR, Unknown Sample Rate, 16-bit, Stereo, BigEndian, Signed, FrameSize=32 bits LINEAR, Unknown Sample Rate, 8-bit, Stereo, Unsigned, FrameSize=16 bits LINEAR, Unknown Sample Rate, 8-bit, Stereo, Signed, FrameSize=16 bits LINEAR, Unknown Sample Rate, 16-bit, Mono, LittleEndian, Signed, FrameSize=16 bits LINEAR, Unknown Sample Rate, 16-bit, Mono, BigEndian, Signed, FrameSize=16 bits LINEAR, Unknown Sample Rate, 8-bit, Mono, Unsigned, FrameSize=8 bits LINEAR, Unknown Sample Rate, 8-bit, Mono, Signed, FrameSize=8 bits javasound:Conexant HD Audio input:1 LINEAR, Unknown Sample Rate, 16-bit, Stereo, LittleEndian, Signed, FrameSize=32 bits LINEAR, Unknown Sample Rate, 16-bit, Stereo, BigEndian, Signed, FrameSize=32 bits LINEAR, Unknown Sample Rate, 8-bit, Stereo, Unsigned, FrameSize=16 bits LINEAR, Unknown Sample Rate, 8-bit, Stereo, Signed, FrameSize=16 bits LINEAR, Unknown Sample Rate, 16-bit, Mono, LittleEndian, Signed, FrameSize=16 bits LINEAR, Unknown Sample Rate, 16-bit, Mono, BigEndian, Signed, FrameSize=16 bits LINEAR, Unknown Sample Rate, 8-bit, Mono, Unsigned, FrameSize=8 bits LINEAR, Unknown Sample Rate, 8-bit, Mono, Signed, FrameSize=8 bits