NetBeans IDE 6.1 Installation Instructions

Last updated: April 25, 2008

This document describes how to install NetBeans IDE 6.1 on your system. For information about supported operating systems and hardware configurations for the IDE, see the NetBeans IDE 6.1 Release Notes. See NetBeans IDE 6.1 Information to learn about the new features included in NetBeans IDE 6.1.

Contents

Required Software

Before you install the IDE, the Java SE Development Kit (JDK) 5 Update 14 (version 1.5.0_14) or newer (including JDK 6 Update 4) must be installed on your system. If you do not have an installation of JDK 5 Update 14 or newer, you cannot proceed with the installation. For more information about the required JDK version, see the Required Software section in the NetBeans IDE 6.1 Release Notes.

top

Installer Download Options

On the NetBeans IDE 6.1 Download page, you can download one of several installers, each of which contains the base IDE and additional tools.

The following installers are available:

top

Customizing Your Installation

If you download the Web & Java EE or the "All" download options, you can choose exactly what tools and runtimes to install.

For the Web & Java EE download option, at the Welcome page select the servers that you want to use.

For the "All" download option, click Customize at the Welcome page and select the features that you want to use. For more information, see Installing the Software.

If you want to add functionality to your NetBeans IDE configuration, use the NetBeans Plugin Manager. For example, assume that you start out by downloading and installing the Ruby pack. You then decide that you want to try out the C/C++ functionality. To do this, go to the NetBeans Plugin Manager from the IDE (choose Tools > Plugins) and add the C/C++ pack to your existing installation.

There are several important notes about installation and configuration of some NetBeans IDE features:

  1. Apache Tomcat 6.0.16 is included in the "Web & Java EE" and "All" download options but it is installed by default from the "Web & Java EE" option only. To install Apache Tomcat from the "All" download, launch the installer and select Apache Tomcat 6.0.16 in the Customize Installation dialog box.
  2. For C/C++ development (applicable for the C/C++ and "All" downloads), you need to additionally install compilers and tools. For more information, refer to the Installing and Configuring C/C++ Support.
  3. If you want to use the Sun Java System Access Manager, in addition to the "All" download option for the IDE, you need to install Java Application Platform SDK Update 4 or later from http://java.sun.com/javaee/downloads/index.jsp. Ensure that you download the version that includes the Access Manager. For more information about the steps required to install the Access Manager, see Installing the Sun Java System Access Manager.
  4. To develop Mobility applications for CDC devices you need to download and install the Sun Java Toolkit 1.0 for CDC . After installation you must register the CDC platform in the IDE.
  5. For Mac OS X, you cannot customize the NetBeans IDE installation.

top

Starting the Download

  1. Navigate to the NetBeans IDE 6.1 Download page.
  2. In the upper right area of the page, select your platform from the drop-down list.
  3. Click the Download button for the download option that you want to install.
  4. Save the installer file to your system.

top

Installing the Software

Follow the instructions in this section to install the IDE on your system. These installation instructions apply to all supported platforms. For the list of supported platforms, see the NetBeans IDE 6.1 Release Notes.

Microsoft Windows, Solaris OS, and Linux

To install the software:

  1. After the download completes, run the installer.
  2. To choose the tools and runtimes to install, perform the following steps at the Welcome page of the installation wizard:
    1. Click Customize.
    2. In the Customize Installation dialog box, make your selections.
    3. Click OK.
  3. At the Welcome page of the installation wizard, click Next.
  4. At the License agreement page, review the license agreement, select the acceptance checkbox, and click Next.
  5. At the NetBeans IDE installation page, do the following:
    1. Accept the default installation directory for the NetBeans IDE or specify another directory.
      Note: The installation directory must be empty, and the user profile you are using to run the installer must have read/write permissions for this directory.
    2. Accept the default JDK installation to use with the NetBeans IDE or select a different installation from the drop-down list.
      If the installation wizard did not find a compatible JDK installation to use with the NetBeans IDE, your JDK is not installed in the default location. In this case, specify the path to an installed JDK or cancel the current installation, install the required JDK version, and restart this installation.
    3. Click Next.
  6. If the GlassFish application server installation page opens, do the following:
    1. Accept the default installation directory for the server or specify another installation directory.
      Note: The installation directory you specify must be empty, and the user profile you are using to run the installer must have read/write permissions for this directory.
    2. From the list of compatible JDK installations, choose the JDK you want the application server to use or click the Browse button to specify another JDK installation.
    3. Change the username and password for the default server domain or accept the defaults and click Next.
      The default username and password are admin and adminadmin.
    4. Verify the default port values (HTTP, HTTPS, and Admin) for the server or change them if necessary.
    5. Click Next.
  7. If the Apache Tomcat installation page opens, accept the default installation directory or specify another installation location.
  8. At the Summary page, verify that the list of components to be installed is correct and that you have adequate space on your system for the installation.
  9. Click Install to begin the installation.
  10. When the installation is complete:
    1. If the GlassFish application server has been installed, to register it select the Register the Sun Java System Application Server and NetBeans IDE after finishing the installer checkbox.
    2. If the GlassFish application server has not been installed, select the Register the NetBeans IDE after finishing the installer checkbox to register the NetBeans IDE.
    3. Click Finish to exit the wizard.
  11. If you selected the Register... checkbox at the previous step, the Registration page opens in the browser. Click Register.
  12. Enter your Sun Online Account or create it on the www.sun.com page, which is accessible via a link.

Note: If you encounter problems successfully completing the software installation, see Troubleshooting for descriptions and suggested workarounds for unresolved issues that could affect the installation process.

Note: If you have not registered the GlassFish application server right after the installation, you can do it when you run the NetBeans IDE or open the Admin console of the GlassFish application server.

Note: If you have not registered the NetBeans IDE 6.1 right after the installation, you can do it when you run the NetBeans IDE.

Mac OS X

To install the software:

  1. After the download completes, run the installer. The installer file has the .dmg extension.
  2. On the panels that opens click the package icon. The package has the .mpkg extension. The installation wizard starts.
  3. At the Welcome page of the installation wizard, click Continue.
  4. Review the license agreement and click Continue. Click Accept in the pop-up window to accept the license.
  5. At the Select a Destination page, select the drive and click Continue.
  6. If you downloaded the All or Java EE bundle, you can customize your installation. On the last installation wizard panel, press the Customize button in the bottom left-hand side of the panel. The tree of products is displayed.
  7. Select the products you want to install
  8. Enter the administrator's name and password for your system and click OK to begin the installation.

See also: Setting Up JDK 6 and JavaFX on 32-bit Intel Macs

top

Uninstalling the Software

Microsoft Windows

If necessary, you can uninstall the NetBeans IDE, the GlassFish application server, and Apache Tomcat using the following procedures.

To uninstall the IDE:

  1. Shut down the IDE.
  2. From the Control Panel, select Add or Remove Programs, then select NetBeans IDE 6.1 and click Remove.

To uninstall the GlassFish application server:

  1. Shut down the IDE.
  2. From the Control Panel, select Add or Remove Programs, then select GlassFish V2 UR2 and click Remove.

To uninstall Apache Tomcat:

  1. Shut down the IDE.
  2. From the Control Panel, select Add or Remove Programs, then select Apache Tomcat 6.0.16 and click Remove.

Solaris OS, Linux

If necessary, you can uninstall the NetBeans IDE, the GlassFish application server, and Apache Tomcat using the following procedures.

To uninstall the IDE:

  1. Shut down the IDE.
  2. In the IDE installation directory, run the uninstall.sh file.
  3. To uninstall GlassFish/Tomcat together with the IDE, at the Summary page make sure that the correct versions are listed and check the appropriate checkboxes.
  4. At the Summary page, click Uninstall.
  5. After uninstallation completes, click Finish.

To uninstall the GlassFish application server:

  1. Shut down the IDE.
  2. Locate the application server installation directory.

    Note: The default installation location is different depending on the type of installation and the platform. The following table shows the default application server installation directory.

    Platform Installing As... SOA Installation
    Solaris OS 
    root /opt/glassfish-v2ur2
    Solaris OS,
    Linux
    user ~/glassfish-v2ur2
    Linux root /usr/local/glassfish-v2ur2
  3. In the application server installation directory, run the uninstall.sh file.
  4. At the Summary page, click Uninstall.
  5. After uninstallation completes, click Finish.

Note: The GlassFish application server is required for SOA functionality. When you uninstall the application server, the SOA functionality is automatically removed from the NetBeans IDE installation.

To uninstall Apache Tomcat:

  1. Shut down the IDE.
  2. Locate the Apache Tomcat installation directory and run the uninstall.sh file.
  3. At the Summary page, click Uninstall.
  4. After uninstallation completes, click Finish

Mac OS X

To uninstall the IDE and application server:

  1. Shut down the software.
  2. Drag the program folders or files to the Trash.
    Note that the default location for the IDE and application server is /Applications/NetBeans/.

 

top

Upgrading and Coexisting with Previous Versions

NetBeans IDE 5.5 or 5.5.1, or 6.0 can coexist with NetBeans IDE 6.1 on the same system. You do not have to uninstall the 5.5 or 5.5.1, 6.0 versions in order to install or run NetBeans IDE 6.1.

If you have NetBeans IDE 5.5, 5.5.1, or 6.0, during the first run of NetBeans IDE 6.1, you will be able to choose whether to import user settings from the previous user directory.

top

Troubleshooting

About the Installer Working Directory

The installer stores data about installation sessions in the installer working directory. Examples of this data are the list of components installed on your system, installation log messages, and registry data.

The default location for the installer working directory is %USERPROFILE%\.nbi on Windows and ~/.nbi on other platforms. The log subdirectory contains the installation log files.

Cleaning Up After Incomplete Installations

After incomplete or unsuccessful installations, you might need to clean up your system from previous installations.

For Microsoft Windows, Solaris OS, and Linux:

  1. Delete the installer working directory.
  2. Delete the installation directories of the IDE and the GlassFish application server.
  3. On the Windows platform, delete all nbi* registry entries from the following registry keys:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

For Mac OS X:

Disabling Some Software Before Installation

It is better to disable firewall, antivirus, and monitoring applications before you start installation. Some of these applications can prevent IDE components from being configured correctly during the installation process.

For example, if you have the Logitech Process Monitor application (LVPrcSrv.exe) running on your system, switch it off before installation.

top

More Information




Send Us Your Feedback

top