java, netbeans, edk.dll not found
Tagged: edk.dll netbeans
September 23, 2016 at 1:49 am #264038
I am using java with Netbeans on a 64bit PC.
For 64bit application, I use a 64bit JRE with edk.dll(64bit) and jna.jar.
For 32bit application, I use a 32bit JRE with edk.dll(32bit) and the same jna.jar.
1st question: For 64bit application, when I run the program, Netbeans can find the edk.dll(64bit) only if it is put in System32 folder.
When I put the dll in the root of my Netbeans project folder or in the jdk..\jre\lib\ext\ folder, Netbeans can’t find the dll while it should find it.
2nd question: For 32bit application, Netbeans cannot find the edk.dll(32bit) even if is put in System32. Why?
Thanks for your help
October 6, 2016 at 7:13 pm #264980
Hi Christophe LANDRET
I am using Eclipse. but i think they are same on reference to Edk lib. Normaly, we can config in IDE, so make sure you did this right way. ^^!
Try to install “Redistributable Packages” follow 32b or 64b edk.dll that you want to use.
or the easiest way, you find and push msvcp120.dll and msvcr120.dll is same folder with EDk lib and configuration your IDE refer to those lib.
October 6, 2016 at 10:38 pm #264995
Hi Hoang Pham,
I know that Eclipse project can be configured to specify path to .dll and .jar files
However Netbeans project can only be configured to specify path to .jar files, ennoying…
With Netbeans, we have to place the .dll in System32 or at the root of the project folder.
This method works with every .dll file I am using in my projects except edk.dll(32bit)
For 64bit app, when I put edk.dll(64bit) in System32, Netbeans find the file
For 32bit app, when I put edk.dll(32bit) in System32, Netbeans does not find the file. This is my main problem…
October 9, 2016 at 7:08 pm #265134
Did you try to install Redistributable Packages? any lucky?
October 10, 2016 at 2:10 am #265146
I tried different things for the 32bit edk.dll:
* I put the msvcp120.dll and msvcr120.dll in the IDE edk lib -> no result
* I downloaded the Redistributable packages and installed it -> no result
* I moved my project to Eclipse and I configured the project lib and dll path -> no result
The dll is still not found by any method (“java.lang.UnsatisfiedLinkError: Unable to load library ‘edk’: Native library (win32-x86/edk.dll)”).
Is there a different jna.jar for 32bit and for 64bit, or is it the same file?
October 19, 2016 at 3:21 pm #265842
could you please give me a feedback?
October 19, 2016 at 7:16 pm #265847
jna.jar we are using same file in 32b and 64b.
if you got wrong in Eclipse, maybe it just from configuration.
Did you follow this page https://github.com/Emotiv/community-sdk/blob/master/doc/How%20to%20run%20Java%20examples.pdf ?
October 21, 2016 at 12:17 am #265950
Hi Hoang Pham,
it was indeed a problem of configuration and now I could make it work on both Eclipse and Netbeans:
* in Eclipse, I had to set the PATH environment variable (as indicated in your pdf) to indicate in which folder the .dll is
* in Netbeans, I had to go in Project properties\libraries\compile and click on “add JAR/folder” to indicate in which folder the .dll is
Thank you very much for your help,
You must be logged in to reply to this topic.