Installing NetBeans IDE on Windows

As a long-time Java/J2EE developer I’ve used NetBeans IDE as my primary development environment for years. But it’s also a capable environment for developing HTML/CSS/PHP applications, especially in the latest 7.3 release. In this article, I’ll describe how to download and install the IDE on Windows. We’ll then check out the IDE by creating simple Java and PHP projects.

Download and Install the IDE

Using your favorite browser, navigate to and click the Download button.

You can download the latest release of NetBeans IDE from

You can download the latest release of NetBeans IDE from

This takes you to the NetBeans IDE 7.3 Download page. If you would like to receive newsletters, you can optionally fill out your Email address in the field provided. Select your IDE Language and Platform from the drop-downs at the top of the page. You have several bundle options from which to choose depending on your needs. I’ll go ahead and pick the full enchilada by clicking the Download button as shown below.

NetBeans Download Page

Several NetBeans bundles are available for download depending on you needs.

Note that you will need to have Java installed on your machine in order to use the IDE. If you don’t have the minimum version already installed as explained in the note at the bottom of the page, follow the links to install or upgrade Java prior to installing the IDE.

Save the installer .exe file at some convenient location on your machine (Desktop or Downloads is fine). Now, run the installer by selecting Run from your browser or double-clicking the installer executable. You will now be presented with the NetBeans IDE 7.3 Installer dialog shown below. By default, everything is installed except for Tomcat. You can adjust the installed components by clicking the Customize button. Once you’re satisfied with your selections, click Next.

Installer Welcome Dialog

On the Installer Welcome Dialog you can customize the components to be installed.

If you accept the terms of the License Agreement click the checkbox and click Next.

License Agreement Dialog

The obligatory license agreement.

JUnit has its own License Agreement. You know what to do.

JUnit License Agreement

Another license agreement for JUnit. You read them all, right?

You can choose the installation location folder in the Install the NetBeans IDE to field. NetBeans will also allow you to choose an alternate JDK if you have multiple versions installed on your system. If the installer didn’t find a JDK, you can Browse for it. Click Next.

Installation Folder Dialog

The Installation Folder dialog allows you to determine where the IDE will be installed. You can also select an alternate JDK if you have more than one version installed on your system.

If you elected to install GlassFish on the Installation Components dialog (or didn’t change the default), you will be prompted to enter the installation location on this dialog. Click Next.

Glassfish Installation Location Dialog

The Glassfish Installation Location dialog allows you to customize the installation location for GlassFish.

On the Summary dialog you can elect to have NetBeans check for updates. Click Install.

Installation Summary Dialog

On this Installation Summary you can elect to have NetBeans check for updates.

An installation progress dialog tracks the installation. Once the installation is complete, you’re presented with the Setup Complete dialog. Elect whether or not to provide anonymous usage data and click Finish.

Setup Complete Dialog

On the Setup Complete dialog you can choose whether or not to provide anonymous usage data.

That’s it; you’ve installed the NetBeans IDE. We’ll now do a quick checkout of the installation by creating simple Java and PHP projects.

Create a Java Project

In order to checkout the NetBeans IDE installation, we’ll first create a simple Java project and print “Hello, world” as usual. First startup the IDE by double-clicking its desktop icon or selecting it from your Windows menu. The IDE should appear as below with a Start Page open.

NetBeans IDE Start Page

The Start Page displays by default. Close it by clicking the x in the editor tab.

From the menu bar, select File→New Project. The New Project dialog appears as shown below. From the Categories list, select Java. From the Projects list, select Java Application. Click Next.

Choose Project Type Dialog

To create a new Java project select Category and Project as shown.

Next, give your project a name, say HelloWorld. The Project Location should default to a folder called NetBeansProjects in your Documents folder. You can change this to any path you like. The Project Folder field will show you the resulting project location. Click Finish.

New Java Application Dialog

Enter a Project Name and Location on the New Java Project dialog.

The IDE creates a Java source file called in the package helloworld and opens it in the source editor. Add the line of code as shown below (on line 18).

Java Source Editor

The HelloWorld class is open in the Java source editor. Here we add a simple println() call in main().

Next, just click the green play button in the toolbar. The IDE will build and run your program, displaying its output in the Output pane.

Java Project Build

To build the project, just click the green play button.

You can now close the Java project by selecting File→Close Project (HelloWorld) from the menu.

Create a PHP Project

We’ll now follow a similar procedure to create a PHP project. From the menu bar, select File→New Project. This time choose PHP from Categories and PHP Application from Projects. Click Next.

New Project Dialog

To create a PHP project, select it from the Categories list and then choose a project type from the Projects list.

Give your project an imaginative name like HelloWorld. Change your Sources Folder to correspond to your web server’s document root, if necessary. In my case that folder is g:\xampp\htdocs. Click Next.

PHP Project Location Dialog

Choose a project name and location for your PHP project. For PHP projects, the Source folder indicates where the PHP files will be deployed. It should reside under your web server’s document root.

Leave the defaults in the Run Configuration step so the application is deployed to your web server as an application called HelloWorld. Click Next.

You can choose to deploy your project on a local web server and select the URL in the Run Configuration dialog.

You can choose to deploy your project on a local web server and select the URL in the Run Configuration dialog.

We won’t need a framework in this simple example, so leave all of the boxes unchecked and click Finish.

PHP Frameworks Dialog

If you’re developing for one of the PHP Frameworks shown, click the associated check box.

The IDE creates a new PHP file called index.php and puts it in the application directory HelloWorld within your web server’s document root. Add the line of code as shown below (on line 10).

PHP Editor

The index.php file is loaded in the PHP editor ready for coding.

Now, click the green play button in the toolbar. This should launch your web browser and navigate to the URL http://localhost/HelloWorld/index.php, where you will see the output of your PHP program.

Running PHP Project

A browser is launched to run the HelloWorld PHP project.

You can now close your project by selecting File→Close Project (HelloWorld) from the menu.

That was just a quick example of how to create Java and PHP projects in NetBeans to check out the installation. has many tutorials, examples, videos, and how-to’s available for the IDE and its related technologies.


  • This is the project site for the NetBeans IDE.

Speak Your Mind