Open up netbeans from the menu, you will find it in
Start Menu > All Programs > Site Licenced Applications > Compilers > Java > Netbeans 6.7.1. If it has not been run before you may have to wait while it downloads and installs.
Unfortunately netbeans does not come with its own compiler, so you will also have to install cygwin on your machine. In order to do this run
cygwin bash from
Start Menu > All Programs > Site Licenced Applications > Network and Email > Cygwin 1.5.13-1 .
Please note that this may take some time (15-20 mins)! Even if the installation appears to stall, do not postpone or remove the cygwin job from ZENworks.
Netbeans should now open. When it starts click to accept the default settings for the location of jdk.
Open a new project (
File > New Project), and select C/C++ Application.
Enter in the name for the project as HelloWorld, then simply click finish.
Now this has opened an new project, we can add new (or existing) C++ files to the project. No program is complete without a main function
so we need a main file. Double click on the project name in the projects tab, you should see listings of the header, resource and source files.
Click on the source files to see if there have been any files created by default. If a file called
already exists then you can skip the next step.
If there is no file, right click on the source files icon and select
New C++ Main File ,
you can just call the file
main, click finish.
An empty main file is now created with no statements. Add the input/output library
iostream and add the command
std::cout << " Hello World!!! " << std::endl
Now compile and run the code by pressing the green triangle button. You should see something like...