Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Unsafistied link error help(Problem with interfacing and calling native methods)
Unsafistied link error help [message #718946] Thu, 25 August 2011 12:22 Go to next message
trevorlelsbree is currently offline trevorlelsbree
Messages: 2
Registered: August 2011
Junior Member
Hi I am trying to build a program and am getting the runtime error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: mywrapperclass.nativemethod()V

So my earlier problem was trying to specify where to load a custom dll from, I got around this by placing the .dll in the System32 folder.

Now my problem is when I call a native method in the wrapper class from my main it gives this runtime error. I have looked around on many forums and blog/websites and haven't been able to fix this. Debug and my browsing have me led me to thinking that the problem lies in the project not being able to find the native methods within the dll.

I have been beating my head against a wall for a week trying to build this simple program.. I know a fair amount of Java, but have never worked with interfacing and am still new to eclipse.

Thanks in advance


[Updated on: Fri, 26 August 2011 14:41]

Report message to a moderator

Re: Unsafistied link error help [message #719339 is a reply to message #718946] Fri, 26 August 2011 14:36 Go to previous messageGo to next message
trevorlelsbree is currently offline trevorlelsbree
Messages: 2
Registered: August 2011
Junior Member
I edited the error, desperate for help!
Re: Unsafistied link error help [message #720038 is a reply to message #718946] Mon, 29 August 2011 13:55 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2202
Registered: July 2009
Senior Member
On 8/25/11 12:22 PM, trevorlelsbree wrote:
> Hi I am trying to build a program and am getting the runtime error:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no nameof.dll
> in java.library.path
>
> then it comes up with subsequent errors all due to loadLibrary
>
> The program is not mine but contains a wrapper necessary for my task,
> and i have launched it and all associated files in an eclipse project. I
> have tried moving around the .dll but to no success. I have never
> programmed with interfaces so this is all foreign ground..
>
> Thanks in advance

See
http://stackoverflow.com/questions/957700/how-to-set-the-java-library-path-from-eclipse
Previous Topic:how to compile android library in eclipse from source
Next Topic:Cannot connect to keystore when installing plugins
Goto Forum:
  


Current Time: Sat Jul 26 09:30:41 EDT 2014

Powered by FUDForum. Page generated in 0.01581 seconds