Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i get my Netbeans output on a terminal window?

Is there anyway for me to run my code in netbeans and get the output in a terminal window rather than the output window of netbeans? (I'm using netbeans 8.0.1 on ubuntu 12.04) Thanx in advance

like image 650
Sudh33ra Avatar asked Oct 12 '14 10:10

Sudh33ra


People also ask

Why does NetBeans not show output?

Try to run the code on cmd and try. If it runs successfully, check if you are executing the java class or the project in total. That may be the reason of no output. Else then try reinstalling your NetBeans IDE.

How do I save output in NetBeans?

We right-click with the mouse and select the Save As... option or press the shortcut Ctrl+S (in Windows). We see a dialog where we can select the filename for the output. Once we press the OK button the contents of the output window is saved to the file.


2 Answers

If you have a C++ project:

Right click on the project -> select properties -> select Run -> change console type from internal terminal to external terminal.

For Java applications, I surprisingly couldn't find any option: Use external terminal. The best I have found now is to make the output window float (right click on the output window and select float group).

like image 145
Mr. AJ Avatar answered Oct 17 '22 18:10

Mr. AJ


For C++ projects (in newer versions of NetBeans; not sure about Java): Left click on File -> Project Properties -> Run -> Console Type -> External Terminal

like image 33
OnARun Avatar answered Oct 17 '22 19:10

OnARun