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 159848 - Can't launch any C/C++ project
Summary: Can't launch any C/C++ project
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Profile (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-07 13:34 UTC by soldatov
Modified: 2019-07-12 08:20 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 soldatov 2009-03-07 13:34:54 UTC
NetBeans IDE Build 200903061429
Ubuntu 8.10

Can't launch any C/C++ project. I press 'Run Main Project', but terminal with program's output doesn't appear (I can't
launch project in Output tab also).
Comment 1 Andrew Krasny 2009-03-07 13:49:53 UTC
Most likely it is gizmo issue.
Comment 2 Alexey Vladykin 2009-03-07 17:44:01 UTC
Yes, DLight does not find valid tools and fails to start session.
Valera, if you are blocked by this bug, you can start NetBeans with -J-Dcnd.prof.enable=false
Comment 3 soldatov 2009-03-07 18:10:57 UTC
Thanks. This flag resolve my this problem and problem which I described in issue 159851.
Comment 4 Leonid Lenyashin 2009-03-07 20:51:04 UTC
Thanks god and vkvashin we now have the gizmo enabled! So the bugs started being reported!
Comment 5 Alexey Vladykin 2009-03-08 14:29:13 UTC
Actually Andrew already fixed it yesterday. Don't know if he noticed it or not :)
Comment 6 Alexey Vladykin 2009-03-08 14:29:41 UTC
Changeset http://hg.netbeans.org/main/rev/32380dd3781f
Comment 7 Andrew Krasny 2009-03-08 14:54:30 UTC
It requires additional verification though... 
Comment 8 soldatov 2009-03-10 10:25:36 UTC
intel-Linix
Gnome
NetBeans IDE Build 200903091401

java.io.IOException: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
        at java.lang.ProcessImpl.start(ProcessImpl.java:65)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
Caused: java.io.IOException: Cannot run program "/usr/bin/gnome-terminal" (in di rectory "/export/NB/Welcome_3"):
java.io.IOException: error=2, No such file or d irectory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
        at org.netbeans.modules.nativeexecution.TerminalLocalNativeProcess.<init >(TerminalLocalNativeProcess.java:113)
        at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(Na tiveProcessBuilder.java:132)
        at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(Na tiveProcessBuilder.java:70)
[catch] at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionServic e.java:254)
        at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionServic e.java:230)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908)
        at java.lang.Thread.run(Thread.java:619)
WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyCha ngeListener using method
removePropertyChangeListener from sun.awt.X11.XToolkit@ 3d860038
Comment 9 Maria Tishkova 2009-03-10 11:05:02 UTC
Andrew, please try to find external terminal in system $PATH before using  the paths from <terminal>.xml.

Valeriy has gnome-terminal defined in /opt/gnome/bin which is in his $PATH env
Comment 10 Alexander Pepin 2009-03-11 18:55:03 UTC
In build 20090311 on Windows Output window is always used to run an application. In other words, there is no way to use
external terminal on Windows.
The second minor issue: in Fractal sample produces no output until it finishes 
Comment 11 Leonid Lenyashin 2009-03-12 10:01:05 UTC
In my Ubuntu 8.10, I can run an application. Indicators do not work, but application runs fine with output in ext term.
Comment 12 Andrew Krasny 2009-03-12 10:01:12 UTC
The main reason for original issue was fixed. 
The problem with external terminal on Windows and output are not related to this issue.
I'll file another two issues for this. 
Comment 13 Quality Engineering 2009-03-18 22:40:19 UTC
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/618fb4c4cf05
User: Andrew Krasny <akrasny@netbeans.org>
Log: #159848: Can't launch any C/C++ project - search for terminal in user's path
Comment 14 liampaxton 2019-07-12 08:20:36 UTC
The main reason for original issue has been fixed. 
https://theimpossible-quiz.co/