5

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

3 Answers 3

6

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).

Sign up to request clarification or add additional context in comments.

3 Comments

its java actually. So it's impossible?
I think it is indeed not possible in Netbeans for Java applications. I thought it was also possible till now, but then I realised I've been only using it for C++ applications. Of course, you could run it like for instance java -jar myapp.jar on your own console. But I can understand that it can be annoying during development.
The best thing I could find was to right click the output window and select 'float group'.
1

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

Comments

0

I got the terminal in Netbeans for Java, You just need to open your project then : select: Tools >> open in Terminal. That's it!.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.