Peter
Peter

Reputation: 4141

Running a project in NetBeans?

In Eclipse, running a project is as simple as clicking the run button.

In NetBeans, I'm totally confused. How do I run the program? If I print something, where does it go (e.g. the console in Eclipse)?

Thanks!

EDIT: Solved it. For some reason it was running a different application than the one I had selected. Anyone know why?

Upvotes: 2

Views: 398

Answers (2)

user330315
user330315

Reputation:

It's the same in NetBeans, just klick the "Run" button (you need to have a main class defined though)

The output goes into the "Output" window which is displayed at the bottom of the editor by default.

If you don't see the output window, you can display it using the menu "Window -> Output -> Output"

Upvotes: 2

In the menu, see Run > Run to run a project.

On the bottom right, find the output windows, that's where the print will appear.

Upvotes: 1

Related Questions