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