2014-02-22 42 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。

相關問題