spark编译运行问题
准备用Openfire+Spark+Smack做一套IM。
从SVN中下载spark的源码,导入Eclipse中,由于编译报错删除src\plugins\growl、src\plugins\apple文件夹(网上有资料说:下载spark源代码后,引入工程时,会有错误,删除applet,google,growl这几个目录就可以了),并且修改部分源文件删除"@Override"字符串(会报错:“必须覆盖超类方法”);
用ant生成后运行,无误;但输入账户密码服务器地址登录后,Eclipse控制台报错,且spark客户端的聊天窗口打开后无法显示出来(在操作系统底部任务栏中有显示)。
Eclipse3.1,jdk1.6.0_06。
Openfire是openfire_3_6_4.exe安装版。
Spark是从SVN中下载的最新的源码(2010-05-24 版本11699),SVN链接:http://svn.igniterealtime.org/svn/repos/spark/trunk
错误代码如下:
----错误代码 start----
010-5-24 10:30:45 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, Unk