see also bug #184785
Windows 7 x64, cygwin
Steps to reproduce:
- run IDE with a fresh userdir
- create Subroject sample
- run the project
Result: Run fails with the message:
error while loading shared libraries: ?: cannot open shared object file: No
such file or directory
RUN FAILED (exit value 127, total time: 63ms)
mistyped, should be see also bug #194785
see also issue #196221
fixed, change set:
wrong fix (fix was for bug #196221)
The problem occurs if cygwin is not in PATH. In that case user can run Subprojects using External Terminal or Standard Output but can not debug. Run in Internal Terminal does not work either.
cygwin/bin should be in path.
*** Bug 194785 has been marked as a duplicate of this bug. ***
Created attachment 106856 [details]
Attached is a possible fix for this.
But I still don't like the solution as it introduces different behavior depending on what actions were taken by user.
I would prefer to force users to add cygwin to %Path% variable or to Windows Registry.
Perhaps a better solution would be to have some place in Tools->Options to configure non-standard and non-detectable path to cygwin.. But this requires UI changes...
After adding cygwin/bin to PATH the bug is still reproducible.
It's reproducible in RC1 build.
fixed, change set:
QA, please, verify fix
Integrated into 'main-golden', will be available in build *201103110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Alexander Simon <firstname.lastname@example.org>
Log: fixed Bug #196251 Can not run/debug Subprojects sample on Windows
The fix is verified in dev build.
Andrey, please, review fix.
The fix is save. It doesn't solve all possible problems that may be introduced by user's input (environment), but it guarantees that we (NB) don't introduce this kind of problems.
The fix is OK.
fixed in release70:
verified in RC1 build 20110317