NetBeans is a free start-of-the-art IDE (Integrated Development Environment) for developing applications in Java, C, C++ & PHP languages. There are several other free IDEs like Eclipse, Visual C++ Express, JGRASP, BlueJ, so on. You are welcome to try them on your own as well. Based on my limited experience with a few IDEs, I believe NetBeans is one of the best IDEs in the marketplace.

 

Any good IDE has a built-in text editor that has lots of sophisticated features like auto-formatting, incremental compilation, good integration with compiler and debugger, so on. IDE takes care of lot of mundane things and helps the programmer to focus on logic and programming. In simple words, good IDE can be the difference between cryptic & painful learning vs. intuitive & enjoyable learning of a programming language.

 

Here are the steps to install NetBeans IDE in Windows PC. Actual software applications depend on whether reasonably new JDK is already installed in your PC & whether you are going to program in Java or C/C++ or both.

 

If you are planning to code in Java, C and C++, you will need to download & install

·         NetBeans plus JDK Bundle: http://www.oracle.com/technetwork/java/javase/downloads/index.html - look for "JDK 7u5 with NetBeans 7.1.2"

·         C++ plug-in : Run NetBeans, select Plugins under Toos menu, look for C/C++ plugin & install it.

·         C++ compiler: http://netbeans.org/community/releases/72/cpp-setup-instructions.html

 

On the other hand, if you are strictly a Java programmer, NetBeans plus JDK Bundle alone will do. If you are strictly C/C++ programmer, following need to be installed.

·         Standalone JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html

·         NetBeans C/C++ Download Bundle: http://netbeans.org/downloads/

·         C++ compiler: http://netbeans.org/community/releases/72/cpp-setup-instructions.html

 

You may run into problems with installing "JDK 7u5 with NetBeans 7.1.2" bundle if that JDK is already installed in your PC. In that case, abandon installing "JDK with NetBeans" bundle, go to NetBeans site and download NetBeans "Java SE" download bundle instead.

 

A few screen-shots to help with Download & Installation:

 

"Stand-alone JDK" or "JDK with NetBeans" bundle in Java website:

 

Description: Machine generated alternative text: 4 4 . .,orade.comtchHt
JdV C
Java SE Downloads
Java SE Support
Java SE Advanced & Sude Latest Release Next Release (Early Access) Embedded Use Previous Releases
Java Embedded
JavaFX
Java DB
Web Tier
Java Card
Java 1V
New to Java
Community
Java Maoazine
JDK 7u3 + Java EE

 

 

 

JDK download options:

 

Description: Machine generated alternative text: : r
ownloadsfjdk7-downloads-1637583.html
e “AVGSecui
- — _-.
Java SE Development Kit 7u5
You must accept the Oracle Binary Code License Agreement for Java SE to download this
software.
Thank you for accepting the Oracle Binary Code License Agreement for Java SE;
you may now download this software.
Product File Description rile Size Download
Linux x86
64.1 MB
jdk-7u5-linux-i586.rpm
Linux x86
79.1 MB
• jdk-7u5-linux-i586.tar.qz
Linux x64
64.93 MB
jdk-7u5-linux-x64.rpm
Linux x64
77.67 MB
jdk-7u5-linux-x64.tar.gz
v1acOSXx64
97.26 MB
•jdk-7u5-macosx-x64.dmg
Solaris x86
137.39 v1B
9 jdk-7u5-solaris-i586.tar.Z
Solaris x86
82.01 MB
jdk-7u5-soians-i586.tar.gz
Solaris SPARC
140.27 MB
jdk-7u5-solans-sparc.tar.Z
Solaris SPARC
86.7 MB
jdk-7u5-solaris-sparc.tar.gz
Solaris SPARC 64-bit
16.45 IviB
! jdk-7u5-solaris-sparcv9.tar.Z
Solaris SPARC 64-bit
12.55 MB
jdk-7u5-solaris-sparcv9.tar.gz
Solaris x64
14.39 MB
jdk-7u5-solaris-x64.tar.Z
Solaris x64
9.54 MB
jdk-1u5-solaris-x64.tar.gz
‘.....) Windows x86
Windows x64
87.95 M B
92.36 MB
jdk-7u5-windows-i586.exe
jdk-7u5-windows-x64.exe

 

NetBeans: Java SE download bundle & C/C++ download bundle:

 

Description: Machine generated alternative text: Netbeans lut 1.2 uownload 7.1.2 7.2 Develooment Archive
I I
IDE I English
Language:
Supported technologies *
LA) NetBeans Platform SDK
ct Java SE
¡! Java FX
t Java EE
4 Java ME
4 Java CardTM 3 Connected
A C/c++
Groovy
4.. PHP
Bundled servers
tAi GlassFish Server Open Source Edition 3.1.2.2
(& Apache Tomcat 7.0.27
Email address (optional):
Subscribe to newsletters:
L Monthly ri Weekly
InI
Lj NetBeans can contad me at this address
vi Platform: IWindows
Note: Greyed out technologies are not supported for this platforrr
I’
NetBeans IDE Download Bundles
All
.
.
.
.
.
.
.
.
.
.
.
C_Download_J
Free, 261 MB

 

Once JDK and NetBeans Java SE combination is installed, we can start programming in Java!

 

CYGWIN C/C++ compiler tools (gdb & make not shown here, but need to be included too):

 

Description: Machine generated alternative text: Sdeð Padcaqes
Select packages to install
Search

 

Open NetBeans, under Tools menu, click on Plugins. Then select C/C++ and click on Install button in the bottom:

 

Description: Machine generated alternative text: ©Plugins L  L
Available Plugins(99) Downloaded_j Installed (24) , Settngs ___________
L Reload Catalog 1 Search:
Install Name Category V Source
c/c++
Netßeans: Statusline Clock Base IDE a
Restart IDE Base IDE U Certified Plugin
Embedded Browser UI - XUL ... Base IDE =
JIRA Base IDE b.) Versiom 1.16.1.1
!! Spellchecker German Dictiona... Base IDE Date: 4/10/12
ri Spellchecker Spanish Dictiona... Base IDE Source Netheans Distribution
jfl Spellchecker French Dictionaries Base IDE Homepaqe ht://www.netbeans.orgi
fl Quick File Chooser Base IDE
Team Server Base IDE 13 Plugin Description
CVS Base IDE 13
fl Bundled Subversion Client für... Bridges O C/C++ support, induding editing, projects, GDB debugger and make. There is
ii C/C++ C/c++ a basic support for Fortran and Assembler (x86/64, SPARC)
Gdbserver C/C++
fl Sakila Sample Database Database LU
XSLT Debugger Debugging
Release Files View Developing N...
Module Manager Developing N...
Cobertura Module Test Cove... Developing N... 13
(fl Netßeans API Documentation Developing N... b)
!fl Netßeans Prniect Metadata I... Developing N...  ___________________
[ Install J 1 plugin selected, 3MB
[ Close j [ Help j

 

Now, we need to configure C++ tools within NetBeans. Click on Options under Tools menu, click on C/C++. Then, click on Add button in bottom-left corner of the window. Once "Add New Tool Collection" button appears, click on Browse, and select "C:\cygwin\bin" as the base directory and say OK.

 

Description: Machine generated alternative text: 3options
—
Tool Collection Family:
Cyciwin
Encoding: UTF-8
t ... ]
[... ]
t ... 1
[... 1
[. ]
[ n. j
r•:
[ Versions.,. ] [__Restore_Defaults__]
[OK JLCance1JL Heij, 1
General
ci
Editor
Fonts & Colors Keymap
Development Host:
Miscellaneous
doolrojdnsCaAsgstance HigNighting [cebuggwig Optons Other
Tool Collection:
localhost
Family:
Q) Add New Tool Collection
Enter the base directory, the family, and the name of the new tool collection.
C: ygvdn’in
[__Edit... ]
.-‘
w
Base Directory:
Tool Collection Name:
Cygwin
[ Browse
w
[ Add... ] [ Duplicate... ]
Remove__j [ Default j
[__ OK__J [__Cancel__j
L ‘„°‚ ] Limporti

 

Various tools will be automatically data-filled based on the base directory:

 

Description: Machine generated alternative text: cft++ Miscellaneous
Debugging Options Other _____________
Development Host: localhost [__Edit... ]
Tool Collection: ______ . . . r -‘
Family: Cygwin coding: 
Cygwin
Base Directory: C:ygwin’in
C Compder: c:’ygwin’in”cc.exe  [ ... j
C++ Compder: [3:’çygwinin’g++.exe j__...__]
FortranCompiler: J [ ... j
Assembler: jygwin’in\as.exe _________ [ ... j
Make Command: C:’çygwinJ,inake.exe ....J 1  1
Debugger Command: C:’çygwinindb.exe _______ [ ... ]
QMake Command: EJ [ ... j
CMake Command: 1 [ ... ]

 

Now, we are all set to work on C/C++ programs using NetBeans IDE!

 

http://netbeans.org/kb/docs/java/quickstart.html shows the simple steps how to write Java programs in NetBeans. http://netbeans.org/kb/docs/cnd/quickstart.html shows the steps for building C/C++ programs in NetBeans.