c++ - NetBeans 7.0.1 良好的 C++ 程序执行 "RUN FAILED"

标签 c++ netbeans netbeans-7

在 NetBeans 7.0.1 中工作,在 Ubuntu 13.10 上全新安装。

我有一个众所周知的优秀 C++ 程序。

我终于让它编译和链接了。

当我按下 Netbeans Run Main Project 三角形时,执行中断

java.util.MissingResourceException: bin/nativeexecution/Linux-x86/pty

RUN FAILED

这是怎么回事,如何解决?

最佳答案

这是一个 NetBeans 输出窗口设置问题。

NetBeans 提供默认为“内部终端”的 C++ 项目。这不适用于您当前的配置。

答案是将您的输出切换到“外部终端”,它会在其自己的窗口中弹出一个单独的紫色终端输入控制台供您交互,或者切换到“标准输出”,它将输出显示在下面预期的白色子 Pane 中。

通过以下方式做到这一点:

Right-mouse-click on your project name -> Properties
on the left side, in the "Categories:" column, select * Run
on the right side, beside the >General -> Console Type:,   
  change the pulldown menu from "Internal Menu" into "Standard Output".
Hit the OK button at the bottom to lock it in.

现在您的项目将在您要求时永远运行。

关于c++ - NetBeans 7.0.1 良好的 C++ 程序执行 "RUN FAILED",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21950990/

相关文章:

maven - 在 Netbeans 中从 Github 创建库 .jar

java - 在 NetBeans 中使用参数运行 Gradle 应用程序

java - java mysql 连接中的运行时错误

c++ - 外部代码如何组织目录结构和编写Makefile

c++ - 使用python或c++将xml/html字符串转换为图像

java - 文本输出不保存到文件

c++ - 修改 vector 引用。什么无效?

c++ - 尽管有 cin.ignore(),但 Cin 没有等待输入

java - Web服务客户端找不到wsdl