Java SE Development Kit 7 And NetBeans IDE Install Instructions

JavaTM SE Development Kit 7 Update 80 and NetBeansTM IDE 8.0.2 Java SE Software Bundle Installation Instructions

The following instructions describe how to install the JavaTM Platform, Standard Edition Development Kit (Java SE 7 Update 80 JDKTM) and the NetBeansTM IDE 8.0.2 Java SE integrated development environment bundle.

Contents

  • The Software Bundle Distribution
  • Installing the Software Bundle
    • Microsoft Windows
    • Linux
    • OS X
  • Uninstalling the Software
    • Microsoft Windows
    • Linux
    • OS X
  • Finding Additional Documentation
  • Providing Feedback

The Software Bundle Distribution

The Java TM SE Development Kit 7 Update 80 and NetBeansTM IDE 8.0.2 Java SE Software Bundle is distributed for various platforms as follows:

Installation Filename Platform
jdk-7u80-nb-8_0_2-windows-i586.exe Windows x86 (32-bit)
jdk-7u80-nb-8_0_2-windows-x64.exe Windows x64 (64-bit)
jdk-7u80-nb-8_0_2-linux-i586.sh Linux x86 (32-bit)
jdk-7u80-nb-8_0_2-linux-x64.sh Linux x64 (64-bit)
jdk-7u80-nb-8_0_2-macosx-x64.dmg OS X v10.7.3 (64-bit)

Note: JavaTM SE Development Kit 7 Update 80 cobundles JavaFX 2.2.

Installing the Software Bundle on Microsoft Windows

To install the software, you must have administrator privileges on your system. The installer places the Java Runtime Environment (JRE) software in %Program Files%\Java\jre7, regardless of the specified JDK install location.

Note: This installer does not displace the system version of the Java platform that is supplied by the Windows operating system.

Before You Install

  1. Verify that your system meets or exceeds the minimum hardware requirements:
    1. 800MHz Intel Pentium III or equivalent
    2. 512 MB of RAM.
    3. 750 MB of free space

      Note: The installer uses the %USERPROFILE%\Local Settings\Temp directory to store temporary files.

  2. Verify that you have administrator privileges on your system.
  3. Download the installer file and save it on your system.
    1. For the 32-bit Windows operating system, the installer file name is jdk-7u80-nb-8_0_2-windows-i586.exe.
    2. For the 64-bit Windows operating system, the installer file name is jdk-7u80-nb-8_0_2-windows-x64.exe.

Installing the Software

  1. Double-click the installer file to run the installer.
  2. At the Welcome page of the installation wizard, click Next.
  3. At the JUnit License Agreement page, decide if you want to install JUnit and click the appropriate option, click Next.
  4. At the JDK Installation page, specify which directory to install the JDK into and click Next.
  5. At the NetBeans IDE Installation page, do the following:
    1. Specify the directory for the NetBeans IDE installation.
    2. Accept the default JDK installation to use with the IDE or specify another JDK location.
  6. Click Next.
  7. Review the Summary page to ensure the software installation locations are correct.
  8. Click Install to begin the installation.
  9. At the Setup Complete page, provide anonymous usage data if desired, and click Finish.

    When the installation is complete, you can view the log file, which resides in the following directory: %USERPROFILE%\.nbi\log.

Installing the Software Bundle on Linux

You can install the JDK software and NetBeans IDE in directories of your choice. You do not have to be a root user to use this installer unless you choose to install this bundle in a system-wide location.

Note: This installer does not displace the system version of the Java platform that is supplied by the operating system.

Before you install

  1. Verify that your system meets or exceeds the recommended minimum hardware requirements:
    1. Pentium III workstation, 800 MHz
    2. 512 MB of RAM
    3. 700 MB of free space

      Note: The installer uses the /tmp or the /var/tmp directory for temporary files.

  2. Download the installer file and save it on your system.
    1. For the 32-bit Linux operating system, the installer file name is jdk-7u80-nb-8_0_2-linux-i586.sh
    2. For the 64-bit Linux operating system, the installer file name is jdk-7u80-nb-8_0_2-linux-x64.sh
  3. Navigate to the directory into which you downloaded the installer file and type:

    chmod +x <installer-file-name> to change the installer file's permissions so it can be executed.

Installing the Software

  1. Type the following command from the directory where you placed the installation file:

    ./<installer-file-name>

  2. At the Welcome page of the installation wizard, click Next.
  3. At the JUnit License Agreement page, decide if you want to install JUnit and click the appropriate option, click Next.
  4. At the JDK Installation page, specify the directory where to install the JDK and click Next.
  5. At the NetBeans IDE Installation page, do the following:
    1. Specify the directory for the NetBeans IDE installation.
    2. Accept the default JDK installation to use with the IDE or specify another JDK location.
  6. Click Next.
  7. Review the Summary page to ensure the software installation locations are correct.
  8. Click Install to begin the installation.
  9. At the Setup Complete page, provide anonymous usage data if desired, and click Finish.

    When the installation is complete, you can view the log file, which resides in the following directory: ~/.nbi/log.

Note: If you choose to install this bundle into a system-wide location such as /usr/local, you must first login as root to gain the necessary permissions.

Installing the Software Bundle on OS X

The Software Bundle can be installed only on OS X v10.7.3 (Lion) or newer. The installer refuses earlier OS X releases.

Note: This installer does not displace the system version of the Java platform that is supplied by the operating system.

Before you install

  1. If you are installing on OS X, install the required OS X updates before proceeding further. If you install this bundle without having first installed the proper OS X updates, you may experience unexpected behavior with the installer or the Java platform.

    Note: You can check for the available updates at http://support.apple.com/downloads.

  2. Verify that your system meets or exceeds the recommended minimum hardware requirements:
    1. Dual-Core Intel (64-bit)
    2. 1 GB of RAM
    3. 700 MB of free space
  3. Download the jdk-7u80-nb-8_0_2-macosx-x64.dmg installer file.

Installing the Software

  1. After the download completes, run the installer. The installer file has the .dmg extension.
  2. On the panel that opens double-click the package icon. The package has the .mpkg extension. The installation wizard starts.
  3. At the Introduction page of the installation wizard, click Continue.
  4. At the Installation Type page, select the appropriate option below:
    1. To perform a standard installation of the Software Bundle, click Install.
    2. To specify another installation location, click Change Install Location.
  5. (Optional, required if you clicked Change Install Location in step 4) At the Destination Select page, specify the disk for Software Bundle installation and click Continue.
  6. (Optional, required if you clicked Change Install Location in step 4) At the Installation Type page, click Install.
  7. Enter the administrator's name and password for your system and click Install Software to begin the installation.

    The Installation page displays the progress of the installation.

  8. When the installation is complete, click Close at the Summary page.

Uninstalling the Software from Windows

Each product in the bundle must be uninstalled separately.

To uninstall the IDE:

  1. Shut down the IDE.
  2. From the Control Panel, select Uninstall a program.
  3. Select NetBeans IDE 8.0.2 and click Remove.

To uninstall the JDK and JavaFX 2.2:

  1. From the Control Panel, select Uninstall a program.
  2. Select Java(TM) SE Development Kit 7 Update 80 from the list and click Remove.

Note: If you uninstall the JDK, but want to continue using NetBeans IDE 8.0.2, you must set the IDE's -jdkhome option to point to an another installation of the JDK as outlined below.

To uninstall the Java Runtime Environment:

  1. From the Control Panel, select Uninstall a program.
  2. Select Java 7 Update 80 from the list and click Remove.

To change the value of -jdkhome:

  1. Navigate to the etc folder of the NetBeans IDE installation directory. The default location is C:\Program Files\NetBeans 8.0.2\etc.
  2. Open the netbeans.conf file in a text editor and edit the netbeans_jdkhome option.

Note: Java TM SE Development Kit (JDK) 5.0 and JDK 6 are not supported on any platform for this release. You must have JDK 7 Update 10 (or newer) on your system to install and run NetBeans IDE 8.0.2.

Uninstalling the Software from Linux

Each product in the bundle must be uninstalled separately.

To uninstall the IDE:

  1. Navigate to the installation directory of the NetBeans IDE.
  2. Type ./uninstall.sh to run the uninstaller.

To uninstall the JDK and JavaFX 2.2:

  • Remove the JDK installation directory.

Uninstalling the Software from OS X

Each product in the bundle must be uninstalled separately.

To uninstall the IDE:

  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/.

To uninstall the JDK and JavaFX 2.2:

  • Remove the jdk1.7.0_80.jdk installation folder under /Library/Java/JavaVirtualMachines/.

Finding Additional Documentation

NetBeans IDE is documented in the software's help system, however, additional documentation about developing with NetBeans IDE is available at the NetBeans Documentation, Training & Support page.

For installation troubleshooting help please refer to the NetBeans IDE Installation FAQ.

See instructions for installing the JDK and JRE on Windows, Linux, and OS X at the Java SE Downloads page.

Providing Feedback

To report a bug or to request a feature for the JDK software, please refer to the following web site: http://bugreport.java.com/bugreport/index.jsp.

To submit your comments or suggestions about the JDK software, please send email to the OpenJDK Governance Board.

For NetBeans software development team contact information, or to learn more about NetBeans IDE and the NetBeans software community, visit the NetBeans Community Portal.

To submit feedback about this documentation, please send email to Documentation Feedback.

Từ khóa » Cách Cài Jdk Và Netbean