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.

Bug 227856 - UnsatisfiedLinkError on Windows 8
Summary: UnsatisfiedLinkError on Windows 8
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Jiri Prox
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-23 22:45 UTC by nguyenq
Modified: 2013-11-02 00:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nguyenq 2013-03-23 22:45:24 UTC
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
Comment 1 Martin Entlicher 2013-03-25 10:30:06 UTC
Does this have anything to do with debugger?
This is a project setup issue, moving to Java project for evaluation.
Comment 2 Tomas Zezula 2013-03-26 14:10:59 UTC
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)?
Comment 3 nguyenq 2013-03-26 22:43:34 UTC
(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.
Comment 4 Tomas Zezula 2013-03-27 09:42:29 UTC
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 .
Comment 5 nguyenq 2013-04-02 01:33:23 UTC
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
Comment 6 Tomas Zezula 2013-04-02 09:14:12 UTC
Jirko, can you try it on Windows 8.
Thanks
Comment 7 nguyenq 2013-11-02 00:39:11 UTC
The problem simply went away after I upgraded to Windows 8.1. I closed the issue. Thanks.