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.
Summary: | cann't launch any project on Windows XP | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | -- Other -- | Assignee: | Egor Ushakov <gorrus> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sergius |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
soldatov
2008-09-20 22:02:36 UTC
The reason are latest changes to LocalNativeExecutor: ProcessBuilder can't run Windows "start" commands because there is no associated executable. N.B.: For some reason "Output Window" mode doesn't work too, which can be another issue. Command "start args" equals "cmd.exe /c start args". So following hack in LocalNativeExecution.exec() works: -------------------------- // copy the call string String[] call= null; if (processName.equals("start")) { call = new String[args.length + 3]; call[0] = "cmd.exe"; call[1] = "/c"; call[2] = "start"; System.arraycopy(args, 0, call, 3, args.length); } else { call = new String[args.length + 1]; call[0] = processName; System.arraycopy(args, 0, call, 1, args.length); } -------------------------- I removed stdouterr.sh and .bat scripts from the run process, that's why we can no longer execute cmd and shell commands. external terminal fixed in: http://hg.netbeans.org/main/rev/792878bd2414 however the problem with output window still remains. On windows we do not know the full name of the executable (with .exe) fixed with the changesets: http://hg.netbeans.org/main/rev/792878bd2414 http://hg.netbeans.org/main/rev/7fde204f35be Verified in build 20080924 |