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 257577

Summary: Running application from IDE fails, from commandline works
Product: java Reporter: pwof
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:
Attachments: Info on error

Description pwof 2016-01-15 09:00:07 UTC
Created attachment 158138 [details]
Info on error

Under Windows 10 I have a project that has a Java GUI that calls a native C++ library. Running this project from within the IDE (ant -f D:\\Users\\pwof\\Documents\\Argus\\Java\\tauargus -Dnb.internal.action.name=run run) gives UnsatisfiedLinkError (see attachment errorlog.txt)

If I run the same command (ant -f D:\\Users\\pwof\\Documents\\Argus\\Java\\tauargus -Dnb.internal.action.name=run run) from the command-line (cmd.exe) I get no error and the program runs as expected.

This only happens under Window 10. Under Windows 7 it works both from the IDE and the command-line.
Comment 1 pwof 2016-01-18 10:42:06 UTC
Work around:
Add the root directory of the project (in my case: D:\\Users\\pwof\\Documents\\Argus\\Java\\tauargus) to the PATH environment variable of Windows 10. Then it works again from inside the IDE. In that project-root-directory the dll's are located.

I can run the command "ant -f D:\\Users\\pwof\\Documents\\Argus\\Java\\tauargus -Dnb.internal.action.name=run run" from the command-line (cmd.exe) from within any directory (not necessarily the project-root-directory; the PATH does not need to contain that project-root-directory either).