From: andrej.frelih on 13 Nov 2007 09:01 java.lang.UnsatisfiedLinkError - native method Hello. I have one problem regarding the native method compilation. I get the following error for ONLY ONE FUNCTION THAT I RECENTLY ADDED: Exception in thread "main" java.lang.UnsatisfiedLinkError: helloworld at com.hp.openview.ib.api.jopc.JOpcApplication.helloworld(Native Method) at com.hp.openview.ib.api.jopc.JOpcApplication.hellokrava(JOpcApplication.java: 854) at OpcApplication.main(OpcApplication.java:40) For example the old function ApplModify and ApplGet work fine. One thing that i have noticed when i run nm(prints the list of common object names) on the compiled library is that my NEWLY added helloworld function contains this "__Fv" at the end of the name that is why i think it cannot be found by the java class. So i think it is a problem with the library compilation, but i don't know where to look. ApplGet| 36088|extern|code |$CODE$ ApplGet| 36088|extern|entry | ApplModify| 36232|extern|code |$CODE$ ApplModify| 36232|extern|entry | helloworld__Fv| 36496|extern|entry | helloworld__Fv| 36496|extern|code |$CODE$ Does anyone have an idea please, or needs more information(code snapshots). Regards, Andrej
|
Pages: 1 Prev: Joystick Next: log4j:WARN No appenders could be found for logger. |