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 - Running application from IDE fails, from commandline works
Summary: Running application from IDE fails, from commandline works
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Tomas Zezula
Depends on:
Reported: 2016-01-15 09:00 UTC by pwof
Modified: 2016-01-18 10:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Info on error (21.26 KB, text/plain)
2016-01-15 09:00 UTC, pwof

Note You need to log in before you can comment on or make changes to this bug.
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 run) gives UnsatisfiedLinkError (see attachment errorlog.txt)

If I run the same command (ant -f D:\\Users\\pwof\\Documents\\Argus\\Java\\tauargus 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 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).