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 188122 - windows7 can't find "dorun.sh",I can't run any program,but I can run it in debug mode.
Summary: windows7 can't find "dorun.sh",I can't run any program,but I can run it in de...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2010-06-27 07:43 UTC by zhang_6210999
Modified: 2012-04-23 15:54 UTC (History)
0 users

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 zhang_6210999 2010-06-27 07:43:42 UTC
Product Version = NetBeans IDE 6.9 (Build 201006101454)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

Hi, 
I've been using netbeans 6.9 on windows7 with cygwin1.7.1 to learn c/c++ programming , when I try to run (F6) any program,windows pop-up a dialog box to say that "windows 找不到文件(that means can't find files)/cygdrive/E/Program Files/NetBeans 6.9/ide/bin/nativeexecution/dorun.sh".What's wrong with it.I can run programs in debug mode (ctrl + f5),I have try to find the file but there is nothing in "cygwin/cygdirve/",and I copy "/E/..../dorun.sh" to "cygdrive/",windows7 can't find "dorun.sh" still.I need your help.
by the way, I'm not sure that I have choosen the right keyword.I'm sorry for my english.thank you .
Comment 1 Silverlight 2010-07-04 10:37:22 UTC
I have the same problem.
According to the tasklist the used command in my case was 

cmd.exe /Q /K start "C:\Program Files\cygwin\bin\sh.exe" "/cygdrive/C/Program Files/Netbeans 6.9/ide/bin/nativeexecution/dorun.sh" -p "" -x /cygdrive/C/Users/*****/AppData/Local/Temp/dlight_*****/db746ab2/dlight830319556

the problem is that "C:\Program Files\cygwin\bin\sh.exe" is interpreted as the title name of the new command window (use start /? on a win7 box) because it is surrounded by "
A possible fix would be to add a bogus title. for example:
cmd.exe /Q /K start "Netbeans" "C:\Program Files\cygwin\bin\sh.exe" "/cygdrive/C/Program Files/Netbeans 6.9/ide/bin/nativeexecution/dorun.sh" -p "" -x /cygdrive/C/Users/*****/AppData/Local/Temp/dlight_*****/db746ab2/dlight830319556

Please keep in mind that the command is incomplete. I think it was truncated after 256 chars (Probably for older windows versions).

The full working command should have been:

cmd.exe /Q /K start "42" "C:\Program Files\cygwin\bin\sh.exe" "/cygdrive/C/Program Files/Netbeans 6.9/ide/bin/nativeexecution/dorun.sh" -p "mytitle" -x /cygdrive/C/Users/Bodo/AppData/Local/Temp/dlight_*****/db746ab2/dlight8303195560669582088termexec.sh
Comment 2 soldatov 2010-07-05 07:35:23 UTC
I downloaded latest setup.exe, launched installer and select C:\Program Files\Cygwin ==> "You should not choose a root path that include spaces in directory names. Proceed anyway?" window appeared.
I am not tested yet. Does Cygwin works correctly in "Program Files" now?
Comment 3 Andrew Krasny 2012-04-23 15:54:01 UTC
The original problem with a space in NB installation was fixed long ago, I believe. 
The second mentioned problem is a different one - it is about wrong parameters that are passed to 'start' command.
The latter is fixed with http://hg.netbeans.org/cnd-main/rev/1d93810fc829