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 86611 - IOException(CC: not found) when open HelloApp project
Summary: IOException(CC: not found) when open HelloApp project
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2006-10-05 18:14 UTC by alexandrov
Modified: 2006-10-06 06:36 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 alexandrov 2006-10-05 18:14:55 UTC
Exclude path to CC from PATH variable. Open Netbeans, create HelloApp project:

Java.io.IOException: CC: not found
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
        at java.lang.ProcessImpl.start(ProcessImpl.java:65)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
        at java.lang.Runtime.exec(Runtime.java:591)
        at java.lang.Runtime.exec(Runtime.java:429)
        at java.lang.Runtime.exec(Runtime.java:326)
        at
org.netbeans.modules.cnd.makeproject.api.compilers.CCCCompiler.getSystemIncludesAndDefines(CCCCompiler.java:58)
        at
org.netbeans.modules.cnd.makeproject.api.compilers.SunCCCompiler.getSystemIncludesAndDefines(SunCCCompiler.java:183)
        at
org.netbeans.modules.cnd.makeproject.api.compilers.SunCCCompiler.getSystemPreprocessorSymbols(SunCCCompiler.java:119)
        at
org.netbeans.modules.cnd.makeproject.api.configurations.Item.getSystemMacroDefinitions(Item.java:246)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getMacroMap(ProjectBase.java:307)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getDefaultPreprocState(ProjectBase.java:259)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl.createIfNeed(ProjectImpl.java:48)
Comment 1 Thomas Preisler 2006-10-06 06:36:15 UTC
Fixed. The compiler is not in the path and the parser cannot be configured.
Changed the ioe to an warning message.