2014-02-22 46 views
2

工作的NetBeans里面7.0.1,在Ubuntu 13.10新的安装。的NetBeans 7.0.1良好的C++程序执行 “运行失败”

我有一个已知良好的C++程序。

我终于得到它的编译和链接。

当我按下Netbeans的运行主项目三角形,执行打破了

java.util.MissingResourceException:斌/ nativeexecution/Linux的-86/PTY

运行失败

发生了什么事以及如何解决?

回答

7

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

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

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

通过这样做:

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. 

现在,您的项目将运行,永远以后,当你问它。

+0

如果执行此操作,模式调试不起作用 – Doberon

0

根据this netbeans forum post包的NetBeans 7.0.1中缺少一些文件。 删除版本从回购和从netbeans download site安装工作像我和NB论坛OP的魅力。 所以问题也是在Ubuntu 14.04。

而且回购的版本是小外的日期和NB有很好.SH安装程序。只记得从回购或其他地方安装一些JDK。

相关问题