This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I start encountering the UnsatisfiedLinkError exception after migrating to Windows 8. My program calls native library DLL, which I place in project's root directory. It seems that NB on Windows 8 does not see or is unable to load the library. The same program runs and unit-tests fine if executed from the command line or in NB on Windows 7. Specifying -Djava.library.path=. for VM options in NB also does not seem to help. My system configuration: - JDK 7u17 - NetBeans 7.3 - Windows 8
Does this have anything to do with debugger? This is a project setup issue, moving to Java project for evaluation.
Nothing to do with NB. Are you sure that the native library has correct bits (64 bit version of JRE requires 64 bit version of library)?
(In reply to comment #2) > Nothing to do with NB. > Are you sure that the native library has correct bits (64 bit version of JRE > requires 64 bit version of library)? The native library is 32-bit, as is the JDK. The same NB project works well on Win7, yet fails on Win8.
Unfortunately I cannot help much with Windows 8 problems as I don't have them. In general: Doesn't the loaded library require some other library like MFC which is not a part of Windows 8? Maybe something can be found by Process Monitor (http://technet.microsoft.com/en-us/sysinternals/bb896645). If you can share the library or some mock library with the same problem and simple test project I can hopefully find someone to lend me Windows 8 box for a while. Even it's probably useless (as the project works on Win7) but for sure can you attach the ant verbose output? Tools/Options/Java/Ant/Verbosity Level .
The library I'm trying to run is Tess4J, a JNA wrapper for Tesseract OCR engine. The download link is http://sourceforge.net/projects/tess4j/files/tess4j/1.1/Tess4J-1.1-src.zip. Tess4J itself is a NetBeans project. The unit tests run fine in NB on Win7 but not Win8. Its unit tests execute successfully from the command line: ant test
Jirko, can you try it on Windows 8. Thanks
The problem simply went away after I upgraded to Windows 8.1. I closed the issue. Thanks.