Basic case of DLL import failing [message #333187] |
Fri, 28 November 2008 13:56 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: torbjorn.ghostwriter.no
I've done what I thought were the necessary steps to access a DLL in a
plugin:
1. I put the dll file (jdic_misc.dll) in the plugin root
2. I put the following code in the plugin:
System.loadLibrary("jdic_misc.dll");
However, the line throws the following exception:
java.lang.UnsatisfiedLinkError: no jdic_misc.dll in java.library.path
.... which I interpret as not being able to find the DLL at all, rather than
an issue with further linking.
Have I missed some steps? I read that the Bundle-NativeInclude (or whatever
it was called) is unnecessary in 3.4, and I tried including the DLL in the
build, but nothing helps. Note that I'm running this from Eclipse directly
(i.e. not exported or anything like that)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03002 seconds