linux 下no jpcap in java.linux library path.path

2015年2月 Java大版内专家分月排行榜第二2014年3月 Java大版内专家分月排行榜第二
2014年9月 Java大版内专家分月排行榜第三2014年6月 Java大版内专家分月排行榜第三2014年2月 Java大版内专家分月排行榜第三2013年11月 Java大版内专家分月排行榜第三2013年10月 Java大版内专家分月排行榜第三
2015年2月 Java大版内专家分月排行榜第二2014年3月 Java大版内专家分月排行榜第二
2014年9月 Java大版内专家分月排行榜第三2014年6月 Java大版内专家分月排行榜第三2014年2月 Java大版内专家分月排行榜第三2013年11月 Java大版内专家分月排行榜第三2013年10月 Java大版内专家分月排行榜第三
2015年2月 Java大版内专家分月排行榜第二2014年3月 Java大版内专家分月排行榜第二
2014年9月 Java大版内专家分月排行榜第三2014年6月 Java大版内专家分月排行榜第三2014年2月 Java大版内专家分月排行榜第三2013年11月 Java大版内专家分月排行榜第三2013年10月 Java大版内专家分月排行榜第三
2015年2月 Java大版内专家分月排行榜第二2014年3月 Java大版内专家分月排行榜第二
2014年9月 Java大版内专家分月排行榜第三2014年6月 Java大版内专家分月排行榜第三2014年2月 Java大版内专家分月排行榜第三2013年11月 Java大版内专家分月排行榜第三2013年10月 Java大版内专家分月排行榜第三
本帖子已过去太久远了,不再提供回复功能。3788人阅读
【工作日志】(14)
在ubuntu中安装eclipse是出现错误:
cat .eclipse/org.eclipse.platform_3.7.0_/configuration/8.log
11:29:03.417 -----------------------------------------------
eclipse.buildId=I6
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=zh_CN
Command-line arguments:& -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0
11:29:12.803
!MESSAGE Application error
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
&& &no swt-gtk-3740 in java.library.path
&& &no swt-gtk in java.library.path
&& &Can't load library: /home/zhong/.swt/lib/linux/x86_64/libswt-gtk-3740.so
&& &Can't load library: /home/zhong/.swt/lib/linux/x86_64/libswt-gtk.so
&& &at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)
&& &at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
&& &at org.eclipse.swt.internal.C.&clinit&(C.java:21)
&& &at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
&& &at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
&& &at org.eclipse.swt.widgets.Display.&clinit&(Display.java:132)
&& &at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
&& &at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
&& &at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:153)
&& &at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:95)
&& &at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
&& &at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
&& &at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
&& &at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
&& &at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
&& &at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&& &at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
&& &at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
&& &at java.lang.reflect.Method.invoke(Method.java:606)
&& &at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
&& &at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
&& &at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
&& &at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
=======================================================================================
这是由于home中缺少swt引起,只需将usr中的配置拷贝至此:
cp usr/lib/jni/libswt-*3740.so home/zhong/.swt/lib/linux/x86_64/
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:97932次
积分:1193
积分:1193
排名:千里之外
原创:21篇
转载:12篇
评论:32条
(1)(1)(3)(2)(1)(4)(3)(7)(1)(2)(1)(2)(1)(1)(2)(1)java.lang.UnsatisfiedLinkError: no XX in java.library.path解决方法 - 无痕客 - 博客园
jni时出现java.lang.UnsatisfiedLinkError& 无法获取调用DLL
应用程序中的 eclipse.ini文件添加
--launcher.library c:\DiskSerial.C:\JDiskSerial.dll
相对路径:
--launcher.library DiskSerial.JDiskSerial.dllAsk Your Question
Hi i try use OpenCV like in "introduction in java development", but i dont know what i must edit in
. When i change my folder with extracted OpenCV, Eclipse write no opencv_java244 in java.library.path. What i do wrong?
Sort by >>
After much trial and error(!), assuming OpenCV is installed on a Windows machine at &opencv-dir&:
The JAR is in &opencv-dir&\build\java. On a 32-bit Windows machine, the Native Library Location is &opencv-dir&\build\java\x86. On a 64-bit Windows machine, the Native Library Location is &opencv-dir&\build\java\x64.
Therefore, on my 64-bit Windows 7 PC with OpenCV installed at D:\opencv:
The JAR is in D:\opencv\build\java. The Native Library Location is D:\opencv\build\java\x64.
Answer for mac users: It seems no one has posted the location of the OpenCV Java native directory/files for mac users! After a great deal of searching, I finally found it: On Mac OSX Mavericks, having done a Cmake build of 2.4.8, I found that setting the "Native Library Location" to the directory "build/lib" did the trick! It seems that "build/lib" contains a file named "libopencv_java248.dylib", which is apparently exactly what the Mac version of OpenCV wants as its native file! As an example, for my project, the full location was: /Users/Flynn/Documents/Eclipse Main Workspace/_Libraries/opencv-2.4.8/build/lib
Where "opencv-2.4.8" was the copy of 2.4.8 that I downloaded, and where "/build" is the build folder that I was instructed to make by . Hope this helps any fellow mac users!
Java API is only wrapper for native C++ library. Your java machine must find it in run time. Specify path to the native OpenCV libraries in project settings: select project, right click-&properties, "java build path", "libraries" tab, select the OpenCV jar, expand it, select "Native library location", click "edit...", folder chooser dialog will appear.
Login/Signup to Answer
Question Tools
1 follower
Seen: 12,031 times
Last updated: Feb 02 '14
Related questions
Please note: OpenCV answers requires javascript to work properly, please enable javascript in your browser,奇技淫巧之处理java.library.path设定问题
JAVA系统运行时候load native lib时候会遇到下面错误,如
java.lang.UnsatisfiedLinkError: no JSTAF in java.library.path
这可能是因为lib文件不存在、读写权限或虚拟机无法定位
解决此问题需要设定一下访问路径
Linux系统下 set LD_LIBRARY_PATH
Windows系统下 set PATH
或者通过JVM参数指定 java
-Djava.library.path=/path/to/libs
另外也可以编程解决
.setProperty( "java.library.path", "/path/to/libs" );
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

我要回帖

更多关于 in java.library.path 的文章

 

随机推荐