`
xiaodongdong
  • 浏览: 81284 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论

Spark no civil in java.library.path完美解决方案

阅读更多

   最近在用spark+openfire开发即时通讯工具,在通过SVN将spark的源码下载过并编译运行时报错,错误如下

 

2010-8-2 17:13:48 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:110)
	at org.jivesoftware.sparkimpl.preference.media.MediaPreferencePanel.<init>(MediaPreferencePanel.java:87)
	at org.jivesoftware.sparkimpl.preference.media.MediaPreference.<init>(MediaPreference.java:33)
	at org.jivesoftware.spark.preference.PreferenceManager.<init>(PreferenceManager.java:58)
	at org.jivesoftware.spark.SparkManager.getPreferenceManager(SparkManager.java:170)
	at org.jivesoftware.spark.filetransfer.SparkTransferManager.<init>(SparkTransferManager.java:181)
	at org.jivesoftware.spark.filetransfer.SparkTransferManager.getInstance(SparkTransferManager.java:139)
	at org.jivesoftware.spark.Workspace.buildLayout(Workspace.java:212)
	at org.jivesoftware.LoginDialog$2.run(LoginDialog.java:1077)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
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)
	... 19 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:麦??(Realtek High Definition A: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

 

  错误是说找不到civil这个文件,在网上找了好多资料都没有能够解决,最后只能拿出杀手锏,将spark下window文件夹下的dll文化全部放入jdk的bin目录下,问题解决^_^

分享到:
评论
7 楼 ygler 2015-03-03  
lku1314 写道
您好!  看了你的博客解决我在安装spark期间 发生的错误

同时也发生了另个异常

java.io.FileNotFoundException: D:\Workspaces\MyEclipse 8.5\spark\target\classes (拒绝访问。)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:215)
at java.util.zip.ZipFile.<init>(ZipFile.java:145)
at java.util.jar.JarFile.<init>(JarFile.java:153)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at org.jivesoftware.sparkimpl.plugin.language.LanguagePlugin.initialize(LanguagePlugin.java:75)

不吝赐教 ,不知你是否碰到过 给个思路都行



请问这个问题你解决了没有呢?
6 楼 lku1314 2014-07-23  
您好!  看了你的博客解决我在安装spark期间 发生的错误

同时也发生了另个异常

java.io.FileNotFoundException: D:\Workspaces\MyEclipse 8.5\spark\target\classes (拒绝访问。)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:215)
at java.util.zip.ZipFile.<init>(ZipFile.java:145)
at java.util.jar.JarFile.<init>(JarFile.java:153)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at org.jivesoftware.sparkimpl.plugin.language.LanguagePlugin.initialize(LanguagePlugin.java:75)

不吝赐教 ,不知你是否碰到过 给个思路都行
5 楼 lb_rain 2014-01-21  
参考了一下openfire源码项目的启动参数
增加到VM环境参数中
-Djava.library.path="${workspace_loc:Spark}/target/build/lib/windows"
启动登录后就不会报错了。

忙乎一天,终于有点自豪感!
4 楼 xiexianyong 2013-01-29  
怎么找不到window文件夹啊?
3 楼 baso4233 2012-09-24  
谢谢分享,我也只能这么做了。奏效,希望有其他的解决方案。
2 楼 xiaodongdong 2010-08-24  
k178613133 写道

楼主 
1。编译spark原码时遇到com.apple.*;这个包怎么处理的啊??全部注释掉吗??
2。将spark下window文件夹下的dll文化全部放入jdk的bin目录下,问题解决^_^
意思是 先安装了spark文件夹。然后将安装的spark下window文件夹下的dll文件全部放入 C:\Program Files\Java\jdk1.6.0_10\bin 这个文件夹下吗??
如果不是请问下该怎么放??
如果是为什么照着做了一次,不对呢???
谢谢了……

那个apple的包在源码里面不是有吗?可以引入的,我的这边没有问题,那个问题是那样解决的,不知你那边是什么一个情况?
1 楼 k178613133 2010-08-19  

楼主 
1。编译spark原码时遇到com.apple.*;这个包怎么处理的啊??全部注释掉吗??
2。将spark下window文件夹下的dll文化全部放入jdk的bin目录下,问题解决^_^
意思是 先安装了spark文件夹。然后将安装的spark下window文件夹下的dll文件全部放入 C:\Program Files\Java\jdk1.6.0_10\bin 这个文件夹下吗??
如果不是请问下该怎么放??
如果是为什么照着做了一次,不对呢???
谢谢了……

相关推荐

    hadoop java.lang.UnsatisfiedLinkError

    解决方案:Exceptionin thread "main" java.lang.UnsatisfiedLinkError:org.apache.hadoop.util.NativeCrc32.nativeCo

    数据库驱动常见错误"java.lang.ClassNotFoundException:解决了jsp连接Error establishing socket.

    "java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver" 解决方案 [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. 解决了jsp连接 sql server 2000的问题

    Spark源码....

    Exception in thread "main" org.apache.spark.SparkException: Amaster URL must be set in your configuration at org.apache.spark.SparkContext.(SparkContext.scala:206) at org.apache.spark.api.java....

    Spark in Action.pdf.zip

    总的来说,《Spark in Action》这本书全面覆盖了Spark的主要功能和使用方法,是Java程序员学习Spark的理想教材。通过学习这本书,你可以深入了解Spark的架构,掌握大数据处理的关键技术,并能运用到实际的项目开发中...

    java开发spark程序

    import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.api.java.function.FlatMapFunction; import org.apache.spark.api.java.function....

    spark2.3.0-hadoop2.6.tgz

    Spark是Apache软件基金会下的一个开源大数据处理框架,它以其高效的计算性能、易用性和灵活性而闻名。本压缩包“spark2.3.0-hadoop2.6.tgz”是专门为运行在Hadoop 2.6环境下的Spark 2.3.0版本设计的。这个版本的...

    9.SparkGraphX介绍及实例.pdf

    1.Spark及其生态圈简介.pdf 2.Spark编译与部署(上)--基础环境搭建.pdf 2.Spark编译与部署(下)--Spark编译安装.pdf 2.Spark编译与部署(中)--Hadoop编译安装.pdf 3.Spark编程模型(上)--概念及SparkShell实战....

    Spark机器学习案例实战.pdf

    在Spark中,可以使用spark.read.csv方法读取存储在文件系统(如HDFS、本地文件系统等)中的CSV文件。读取的数据通常以DataFrame的形式存储,这样便于进行进一步的处理和分析。 10. Spark和Scala的关系 Scala语言...

    SparkSQL通过Hive创建DataFrame

    Caused by: org.apache.spark.sql.catalyst.analysis.NoSuchTableException: Table or view 'stu' not found in database 'default'; 分析:确实没有临时表View,并且没有开启Hive支持 解决:开启Hive支持 val ...

    Can't find a codec for class java.math.BigDecimal.txt

    解决mongo数据插入时 报错问题 mogodb插入数据时报错Can't find a codec for class java.math.BigDecimal

    Spark.GraphX.in.Action.2016.6.pdf

    Spark.GraphX.in.Action.2016.6.pdf

    spark-md5.min.js jsMD5计算

    spark-md5.min.js jsMD5计算

    经典Spark算子的JAVA实现.zip

    本资料“经典Spark算子的JAVA实现.zip”提供了25个核心Spark算子的Java实现,这些实现已经过Junit测试,确保了代码的正确性和可靠性。以下是对这些算子的详细介绍: 1. **map()**: 这是Spark中最基本的转换操作,它...

    1.Spark及其生态圈简介.pdf

    1.Spark及其生态圈简介.pdf 2.Spark编译与部署(上)--基础环境搭建.pdf 2.Spark编译与部署(下)--Spark编译安装.pdf 2.Spark编译与部署(中)--Hadoop编译安装.pdf 3.Spark编程模型(上)--概念及SparkShell实战....

    greenplum-spark_2.11-1.6.2.jar

    greenplum-spark_2.11-1.6.2.jar,csdn 下载需积分,可私信获取百度云链接

    spark_prometheus_metrics.json

    博客https://blog.csdn.net/lsshlsw/article/details/82670508 spark_prometheus_metrics.json

    original-spark-examples-2.4.3.jar.zip

    《Spark与HBase交互:基于源码解决pyspark访问Hbase2的错误》 在大数据处理领域,Apache Spark和Apache HBase都是重要的组件。Spark提供了高性能的数据处理能力,而HBase则是分布式列式数据库,适合存储大规模结构...

    Apache Spark 2.x for Java Developers

    While Spark is built on Scala, the Spark Java API exposes all the Spark features available in the Scala version for Java developers. This book will show you how you can implement various ...

    High.Performance.Spark.Best.Practices.for.Scaling.and.Optimizing.Apache.Spark.

    High.Performance.Spark.Best.Practices.for.Scaling.and.Optimizing.Apache.Spark. High.Performance.Spark.Best.Practices.for.Scaling.and.Optimizing.Apache.Spark.

Global site tag (gtag.js) - Google Analytics