unsatisfiedlinkerror

JamVm not running an application (that uses jpcap) on Gumstix

偶尔善良 提交于 2019-12-13 06:43:35
问题 A newbie here so apologies in advance for asking anything silly/obvious. I am trying to run a java application on a Gumstix overo board (linux kernel 2.6.34). So far, I have installed JamVm (jvm), jikes compiler and classpath libraries (as per instructions in this tutorial). I have run a HelloWorld program and it seemed fine. Now when I try to run another application (say 'MyApp') that uses 'jpcap' libraries, the jvm gives me an error that looks like this: Exception during event dispatch:

UnsatisfiedLinkError: The library loads but I still get a link error

情到浓时终转凉″ 提交于 2019-12-13 00:15:03
问题 I have two Eclipse plugins: plugin-1: provides a package in .jar to other plugins. (a Java Wrapper for a C++ library) This plugin was created by clicking File->New->Other->Plug-in from Existing JAR Archives. plugin-2: has the native library .so for plugin-1 ( Bundle-NativeCode directive is in MANIFEST.MF) and instantiates a class from plugin-1 (I actually tried putting the .so in plugin-1, but I cannot seem to load the library, even with the Bundle-NativeCode directive in the plugin-1

JNI %1 is not a valid Win32 application

安稳与你 提交于 2019-12-12 19:42:39
问题 I'm running Netbeans on 64-bit Windows 8, with JDK 1.7_25 (64-bit), following the instructions for the Beginning JNI with NetBeans (https://netbeans.org/kb/docs/cnd/beginning-jni-linux.html) The instructions are for linux, but the principle is the same for Windows I believe (generating a .dll file instead of .so, using win32 includes in the JDK, etc) I have Cygwin64 installed as well as Cygwin32. Using Cygwin64, I'm able to generate a 64-bit DLL from my C/C++ Dynamic Library project. However,

UnsatisfiedLinkError : setMessageHandler(Native Method)

折月煮酒 提交于 2019-12-12 13:29:57
问题 I am making an application in which I have used some native methods,and these methods are defined in a separate class. When I create the instance of that class in my Activity class then this type of error is occurs. This is the my Activity Class public class LoginActivity extends Activity { PortSipSdk sdk; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.loginview); sdk = PortSipSdk.getInstance();//error is occurs at this

Android 4.2 ndk: library loading crash: load_library(linker.cpp:750) || soinfo_link_image || libhoudini.so || opencv

梦想与她 提交于 2019-12-12 12:07:25
问题 I am using a native library that includes opencv. The library builds well and works well in all devices and emulators, but not on Android 4.2 ones. It crashes on System.loadLibrary("mylib"); . The library is built for armeabi-v7a armeabi x86 mips (I see in the jnilibs folder that all the so files were generated) I am stuck on this bug because I couldn't find any answer on the internet which could explain my problem. Cannot load library: soinfo_link_image(linker.cpp:1635): could not load

Android NDK java.lang.UnsatisfiedLinkError on sample hello-jni

左心房为你撑大大i 提交于 2019-12-12 06:16:03
问题 I need to run some native C code on android and am trying to setup the NDK. I am using Android studio. I've imported the hello-jni sample, but it simply doesn't work. I always get a java.lang.UnsatisfiedLinkError error. ndk-build: $ ndk-build [arm64-v8a] Gdbserver : [aarch64-linux-android-4.9] libs/arm64-v8a/gdbserver [arm64-v8a] Gdbsetup : libs/arm64-v8a/gdb.setup [x86_64] Gdbserver : [x86_64-4.9] libs/x86_64/gdbserver [x86_64] Gdbsetup : libs/x86_64/gdb.setup [mips64] Gdbserver : [mips64el

JAVA/JNI - Load native DLL with circular dependency

蓝咒 提交于 2019-12-12 02:56:35
问题 I try to load c++ code in my java project with JNI. I have many several DLL to load, and unfortunately there is a cyclic dependency between two of them : dll A needs dll B which in turns need dll A ! I know it is a bad programming design to have circular dependencies between DLL, but in my project the c++ code is a black box to me. Is there any way to load DLL with a cyclic dependency ? Thanks for your help. jpsi Details: My code is quite simple: System.loadLibrary("myDLLA"); // needs dll B

Java JNI native library loads on 64bit and 32bit, but doesn't run on 32bit

三世轮回 提交于 2019-12-12 01:36:55
问题 I have a JNI application working on my main computer which is Windows 7 64-bit, but it fails to work on my laptop which is Windows XP 32-bit. On the laptop, the 32-bit version of the native DLL loads without an UnsatisfiedLinkError , but I get the error when the actual native method is called. Here is how I compile my DLLs using MinGW: cd bin javah MyClass move /Y MyClass.h ../ "%mingw64%\bin\g++" -shared -I"C:\Program Files\Java\jdk1.8.0_05\include" -I"C:\Program Files\Java\jdk1.8.0_05

dlopen failed to load 32 bit instead of 64 bit library

回眸只為那壹抹淺笑 提交于 2019-12-12 01:07:54
问题 I have developed an application which uses 32 bit library libmylibrary.so but when I use system.loadLibrary("mylibrary") , it says that cannot find library in /system/lib64 or /vendor/lib64 . I don't see my library in /data/app-lib .. etc . My Android version is 5.1.1 . I even copied my library in /system/lib64 but it is still giving error message that dlopen failed to load 32 bit instaed of 64 bit . Please provide some valuable suggestions. 回答1: it says that cannot find library in /system

java.lang.UnsatisfiedLinkError when i load a jar .

自作多情 提交于 2019-12-11 13:15:24
问题 I ' m programming with JSE and i'm loading a jar (that i do ) with another java program . The problem is in classLoader of java virtual machine i think . i said that beacuse i tried to exec the file jar with java -jar "file.jar" and it runs . I'm using xubuntu with eclipse. In eclipse, i have 2 project that respectively are the first software that loads jar and the jar software . To export the jar file i use the wizard "Export -> jar ecc...." How can i resolve this problem? Exception in