Netbeans Jdk Mac Os X

This page describes how to install and uninstall JDK 8 for OS X computers.

On Macintosh OS X, NetBeans is packaged as a native application bundle. The preferred method of installing NetBeans IDE is using the tarball (.tar.gz) file. To install the IDE: Download the tarball to the desired location on your system. From the NetBeans bug: Build: NetBeans IDE Dev (Build 00) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b41, Java(TM) SE Runtime Environment, 1.8.0-ea-b99 OS: Mac OS X User Comments: sreimers: Starting NetBeans (MacOS, jdk8 b99) Stacktrace: java.util.NoSuchElementException at java.util.LinkedList.getFirst(LinkedList.java:244) at java.awt.DefaultKeyboardFocusManager.

This page has these topics:

See 'JDK 8 and JRE 8 Installation Start Here' for general information about installing JDK 8 and JRE 8.

See 'OS X Platform Install FAQ' for general information about installing JDK 8 on OS X.

System Requirements

Observe the following requirements:

  • Any Intel-based computer running OS X 10.8 (Mountain Lion) or later.

  • Administrator privileges.

Note that installing the JDK on OS X is performed on a system wide basis, for all users, and administrator privileges are required. You cannot install Java for a single user.

Installing the JDK also installs the JRE. The one exception is that the system will not replace the current JRE with a lower version. To install a lower version of the JRE, first uninstall the current version as described in 'Uninstalling the JRE'.

JDK Installation Instructions

When you install the Java Development Kit (JDK), the associated Java Runtime Environment (JRE) is installed at the same time. The JavaFX SDK and Runtime are also installed and integrated into the standard JDK directory structure.

Depending on your processor, the downloaded file has one of the following names:

  • jdk-8uversion-macosx-amd64.dmg

  • jdk-8uversion-macosx-x64.dmg

Where version is 6 or later.

  1. Download the file.

    Before the file can be downloaded, you must accept the license agreement.

  2. From either the Downloads window of the browser, or from the file browser, double click the .dmg file to launch it.

    A Finder window appears containing an icon of an open box and the name of the .pkg file.

  3. Double click the package icon to launch the Install app.

    The Install app displays the Introduction window.


    Note:

    In some cases, a Destination Select window appears. This is a bug, as there is only one option available. If you see this window, select Install for all users of this computer to enable the Continue button.

  4. Click Continue.

    The Installation Type window appears.

  5. Click Install.

    A window appears that says 'Installer is trying to install new software. Type your password to allow this.'

  6. Enter the Administrator login and password and click Install Software.

    The software is installed and a confirmation window appears.

  7. Refer to http://www.oracle.com/technetwork/java/javase/downloads/jdk-for-mac-readme-1564562.html for more information about the installation.

  8. After the software is installed, delete the .dmg file if you want to save disk space.

Determining the Default Version of the JDK

If you have not yet installed Apple's Java OS X 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences app. See 'Note for Users of OS X that Include Apple Java 6 Plug-in'.

There can be multiple JDKs installed on a system, as many as you wish.

When launching a Java application through the command line, the system uses the default JDK. It is possible for the version of the JRE to be different than the version of the JDK.

You can determine which version of the JDK is the default by typing java -version in a Terminal window. If the installed version is 8u6, you will see a string that includes the text 1.8.0_06. For example:

To run a different version of Java, either specify the full path, or use the java_home tool:

For more information, see the java_home(1) man page.

Uninstalling the JDK

To uninstall the JDK, you must have Administrator privileges and execute the remove command either as root or by using the sudo(8) tool.

For example, to uninstall 8u6:

Do not attempt to uninstall Java by removing the Java tools from /usr/bin. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.

NetBeansTM IDE is a modular, standards-based integrated development environment (IDE), written in the JavaTM programming language. The NetBeans project consists of a full-featured open source IDE written in the Java programming language and a rich client application platform, which can be used as a generic framework to build any kind of application. For information about how to install the software on your system, please see the NetBeans IDE 7.1.2 Installation Instructions. To learn about the new features included in this release of the IDE see the NetBeans IDE 7.1.2 Release Information page.

Contents

  • Known Issues

What's New in 7.1.2

NetBeans IDE 7.1.2 is an update to NetBeans IDE 7.1 and includes the following changes:

  • JavaTM SE Development Kit 7 Update 4 support
  • Full support of JavaFX 2.1 SDK on Windows and OS X 10.7
  • Java ME SDK 3.0.5 support
  • Bundled GlassFish 3.1.2 update release

Note: If you download and install a patch for Netbeans IDE 7.1, both Java ME SDK 3.0 and Glassfish 3.1.1 remain unchanged. These components get upgraded by running the Netbeans IDE 7.1.2 installer.

The following updates to the 7.1 release also apply to 7.1.2:

  • Batch refactoring tool for bulk changes in Java Editor
  • New UI Debugger for JavaFX and Swing
  • Support for WebLogic 12c
  • Improved support for CDI, EJB, JSF, Spring, Web Services
  • Subversion and Mercurial enhancements and bundled Git support
  • Maven enhancements
  • PHP enhancements
  • Additional enhancements are listed at the NetBeans IDE 7.1 page

For more about this release, see the NetBeans IDE 7.1.2 Release Information page.

Supported Technologies

NetBeans IDE 7.1.2 supports the following technologies and has been tested with the following application servers. If you plan to use versions other than those explicitly listed, please note that you may encounter unpredictable IDE behavior. See the NetBeans IDE 7.1.2 Supported Platforms page for more details on the tested platforms and runtimes for this release.

Supported technologies:
  • Java EE 6, Java EE 5 and J2EE 1.4
  • JavaFX 2.1
  • Java ME SDK 3.0.5
  • Java Card 3 SDK
  • Struts 1.3.10
  • Spring 3.0, 2.5
  • Hibernate 3.2.5
  • Java API for RESTful Web Services (JAX-RS) 1.1
  • Java Wireless Toolkit 2.5.2 for CLDC
  • Issue Tracking
    • Bugzilla 4.0.x and earlier
    • Jira 4.2 and earlier
  • PHP 5.3, 5.2, 5.1
  • Groovy 1.6.4
  • Grails 1.1
  • Apache Ant 1.8.3
  • Apache Maven 3.0.3 or later
  • C/C++/Fortran
  • VCS
    • Subversion: 1.5.x, 1.6.x
    • Mercurial: 1.8 and earlier
    • ClearCase V7.0
    • Git 1.7.х

Tested application servers:
  • GlassFish Server Open Source Edition 3.1.2
  • WebLogic 12c

Known to run application servers:

System Requirements

NetBeans IDE runs on operating systems that support the Java VM (Virtual Machine) and has been tested on the platforms listed below.

Note: The IDE's minimum screen resolution is 1024x768 pixels.


Supported Operating Systems

Minimum Hardware Configurations

  • Microsoft Windows XP Professional SP3/Vista SP1/Windows 7 Professional:
    • Processor: 800MHz Intel Pentium III or equivalent
    • Memory: 512 MB
    • Disk space: 750 MB of free disk space
  • Ubuntu 9.10:
    • Processor: 800MHz Intel Pentium III or equivalent
    • Memory: 512 MB
    • Disk space: 650 MB of free disk space
  • Solaris OS version 11 Express (SPARC):
    • Processor: UltraSPARC II 450 MHz
    • Memory: 512 MB
    • Disk space: 650 MB of free disk space
  • Solaris OS version 11 Express (x86/x64 Platform Edition):
    • Processor: AMD Opteron 1200 Series 1.8 GHz
    • Memory: 512 MB
    • Disk space: 650 MB of free disk space
  • Macintosh OS X 10.6 Intel:
    • Processor: Dual-Core Intel (32 or 64-bit)
    • Memory: 1 GB
    • Disk space: 650 MB of free disk space

Recommended Hardware Configurations

  • Microsoft Windows XP Professional SP3/Vista SP1/Windows 7 Professional:
    • Processor: 2.6 GHz Intel Pentium IV or equivalent
    • Memory: 2 GB
    • Disk space: 1 GB of free disk space
  • Ubuntu 11.04:
    • Processor: 2.6 GHz Intel Pentium IV or equivalent
    • Memory: 2 GB
    • Disk space: 850 MB of free disk space
  • Solaris OS version 11 Express (SPARC):
    • Processor: UltraSPARC IIIi 1 GHz
    • Memory: 2 GB
    • Disk space: 850 MB of free disk space
  • Solaris OS version 11 Express (x86/x64 platform edition):
    • Processor: AMD Opteron 1200 Series 2.8 GHz
    • Memory: 2 GB
    • Disk space: 850 MB of free disk space
  • Macintosh OS X 10.7 Intel:
    • Processor: Dual-Core Intel (32 or 64-bit)
    • Memory: 2 GB
    • Disk space: 850 MB of free disk space


NetBeans IDE is also known to run on the various other Linux distributions such as Oracle Linux 5, Ubuntu 8.x, Red Hat Enterprise Linux, Fedora 14, and many others.

Note: NetBeans Web and Java EE support are particularly demanding on system resources - especially when used in combination with application servers. While the above system requirements apply to most configurations of the IDE, for the best results make sure that your system meets at least the recommended system requirements when developing Web and Java EE applications.

Required Software

NetBeans IDE runs on the Java SE Development Kit (JDK) which consists of the Java Runtime Environment plus developer tools for compiling, debugging, and running applications written in the Java language.

The tested JDK for this release is JDK 7u4 for Windows, Linux, Solaris and OS X. The 7.1.2 version of the IDE cannot be installed or run using JDK 5.0.

Note: The PHP and C/C++ NetBeans bundles only require the Java Runtime Environment (JRE) 6 or 7 to be installed and run.


You can download the JDK for your platform from one of the sites listed below:

  • Windows, Linux and Solaris: http://www.oracle.com/technetwork/java/javase/downloads/index.html
  • OS X:
    • http://support.apple.com/downloads
      for Mac OS X 10.6 (includes Java SE 6, version 1.6.0_31)
    • http://www.oracle.com/technetwork/java/javase/downloads/index.html
      for OS X Lion 10.7

    Note: Java SE 6 or Java SE 7 are required to install and run NetBeans IDE 7.1.2. Java upgrades for Mac OS X are also available via Apple's Software Update mechanism.

  • Open VMS: http://h18012.www1.hp.com/java/download/index.html

JavaFX Support

The JavaFX 2.1 SDK is not bundled with the NetBeans IDE 7.1.2 release. You can download it from http://www.oracle.com/technetwork/java/javafx/downloads/index.html or install together with JDK 7u4 on Windows or OS X 10.7 as a co-bundled product.
Please note the following:

  • The minimum supported JDK version for JavaFX 2.1 is 6 Update 32 or Java SE 7 Update 4 for Windows and Java SE 7 Update 4 for OS X.
  • See the JavaFX 2.1 Release Notes page for more information about system requirements and supported platforms in the JavaFX 2.1 SDK, and the list of known issues with the JavaFX 2.1 code or documentation.
  • The FX project file format has been substantially updated from the 7.1 Beta format and may cause problems for users who attempt to open 7.1 Beta FX projects in NetBeans IDE 7.1.2. See issue #205249 for details.

SQL Editor and Databases

Jdk download for mac os

The following changes have been made to the database functionality in NetBeans IDE 7.1.2:

  • Upgraded Drivers. The MySQL drivers included in NetBeans IDE have been updated to version 6.0.
  • Tested Drivers

    NetBeans IDE 7.1.2 has been tested with the following databases and drivers.

    Version
    JavaDBDerby 10.3.1.4jdbc:derby://localhost:1527/sample (Network)
    OracleOracle Database 11g (11.1.0.7)jdbc:oracle:thin:@//localhost:1521:ora11i
  • Other Drivers

    The following drivers and databases have not been formally tested, but should work based on experience.

    Driver
    Example URL
    PostgreSQL8.xjdbc:postgresql://jsmith.mycompany.com:5432/postgres
    MySQLMySQL Connector/J 6.0jdbc:mysql://localhost:3306/sample
    Microsoft Microsoft SQL Server 2005 JDBC Driver 1.2.2828.100 jdbc:sqlserver://localhost:1433;databaseName=travel;selectMethod=cursor
    IBMRedistributable DB2 JDBC Type 4 driver v8 fixpack 13 jdbc:db2://localhost:50002/sample
    jTDS jTDS 1.2.1 jdbc:jtds:sqlserver://test-mycompany.com:1433/travel
    DataDirect DataDirect Connect for JDBC - 3.6 DataDirect Connect for JDBC - 3.6.07jdbc:datadirect:oracle://localhost;SID=ora11ijdbc:datadirect:sqlserver://localhost:1433;DatabaseName=travel;SelectMethod=cursorjdbc:datadirect:db2://localhost:50002;databaseName=sample
  • For Database troubleshooting information please refer to the NetBeans Database Connectivity User FAQ.

Multilingual Support Information

NetBeans IDE is translated into the following languages: Brazilian Portuguese (BR), Japanese (JP), Simplified Chinese (ZH), and Russian (RU).

Community translations of the IDE are also available in several additional languages and can be downloaded from the Community Contributed section of the IDE Language drop-down menu.

Compatibility with Earlier Releases

When the IDE is run for the first time after installation you have the option to import some of the settings used in a previous installation. The IDE opens using the default settings if you choose not to import the settings from the existing installation. Note the IDE only recognizes previous installations when the user directory resides in the default location. It does not recognize installations that use the --userdir switch to specify a user directory. If you would like to import settings from a location that the installer does not recognize do the following:

  1. Start the IDE go to Tools > Options in the main menu.
  2. Click the Import button at the bottom of the Options dialog.
  3. In the Select Options to Import dialog, click the Browse button and navigate to the user directory that contains the settings you want to import. For more about the location of the NetBeans IDE userdir, see the FAQ What is a userdir and where can I find it?

Archived Modules and Features

Support for designing GUI forms that use Swing Application Framework was discontinued. If you want to edit such forms, use NetBeans 7.0.1.

Note: Support for Swing is not affected by the removal of Swing Application Framework from NetBeans IDE.

CVS support was moved from the standard distribution of the IDE to the Update Center. To work with CVS in the IDE, download and install the respective module using the IDE's Plugin Manager.

The C/C++ Profiling Tools were removed from the standard distribution of the IDE.

Support for directly deploying to some mobile devices, most notably Ricoh devices and also very old Windows phones, was removed. You can still develop an application for such platforms though the direct deploy option is removed from the IDE.

The Packaged Archive project template was removed from the IDE.

The complete list of NetBeans Archived Features is available at http://wiki.netbeans.org/NetBeansArchivedFeatures.

Known Issues

Installer

Jdk Download For Mac Os

The unresolved installer issues for this release are as follows:

  • Issue #93568: On Solaris and Linux, installation hangs when the network connection is lost.

    Description: On Solaris and Linux platforms, if the network connection is lost, installation hangs when the installer is searching for a compatible JDK in network directories.

    Workaround: Restore the network connection and proceed with the installation.

  • Issue #117172: A blank window when running the installer on Ubuntu.

    Description: The installer appears as the blank/gray dialog when running on Ubuntu with Beryl/Compiz/Compiz Fusion installed.

    Workaround: Execute the export AWT_TOOLKIT=MToolkit command before running the installer.

  • Issue #123300: On Fedora Core 8 the installer stops displaying the interface and returns to the console.

    Description: On Fedora Core 8, displaying the installation interface stops and the system returns to the console.

    Workaround: See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373.

  • The installation wizard does not start properly (hangs). After the user stops the installation process manually, and the installer reports that another installer instance is running.

    Description: On Windows, when JDK6 is used by default and large zip files are stored on the desktop, the installation wizard does not start properly (hangs). After the user stops the installation process manually, and the installer reports that another installer instance is running.

    Workaround: Before the installation, remove all big zip files from the desktop.

Core IDE

The unresolved Core IDE issues for this release are as follows:

  • Difficulties starting the IDE (Solaris x86 and Dual-Core Opteron).

    Description: On certain Solaris x86 and Dual Core Opteron configurations, you may encounter problems starting the IDE due to a JDK bug with loading GTK look&feel libraries.

    Workaround: If you encounter this behavior, specify the following command line option: -laf javax.swing.plaf.metal.MetalLookAndFeel

  • Characters do not display properly in some Asian locales.

    Description: When running the IDE with some Asian locales on Ubuntu and some other Linux distributions, the IDE's screen text may become unreadable. On certain Linux distributions multi-byte characters may display as a rectangle due to JDK font setting issues.

    Workaround: Please see the FAQ for help with resolving this issue: http://wiki.netbeans.org/FaqI18nLinuxAsianFonts

  • Issue #211406: Views and Palettes keeps scrolling itself to the drag position after DnD

    Description: After dragging and dropping something from Projects or Files Views or Palette in GUI designers, when you scroll the View or Palette up or down it will scroll back to the drag position, requiring you to scroll to select some nodes and components.

    Workaround: You must restart the IDE.

  • Issue #88776: Profiled application can crash when profiling using dynamic attach mode.

    Description:When running on JDK 1.6, profiling an application with dynamic attach mode can lead to the profiled application crashing.

    Workaround: Start the application you want to profile with the -Xshare:off switch.
    See also Issue #113847.

  • Issue #110074: Editor periodically freezes on Solaris.

    Description: When running the IDE on Solaris with JDK 6, 6u1 or 6u2, threads may become blocked for a long time and cause the editor to be unresponsive.

    Workaround: Upgrade your JDK 6 installation to Update 3 or newer.

  • Issue #119617: Cursor lost in editor and cannot type using keyboard.

    Description: It can sometimes occur that after using a hint in the editor window that the insertion point in the editor disappears and you cannot type using the keyboard. This has mostly been reported on Mac OS X 10.4, but there have been some reports on some versions of Ubuntu.

    Workaround: Use the mouse to open and then close a dialog window (for example, a properties dialog). This returns the focus to the editor and the insertion point and keyboard will work as normal.

  • Issue #130357: I18N - Mac OS will not generate javadoc if the project name or path has multibyte characters.

    Description: The javadoc task is written in MacRoman, the default Mac OS encoding, when creating the temporary parameter file. This may be due to the BSD and Mach parts (system & kernel calls) accepting parameters in UTF-8, but the Mac OS and HFS only accepting MacRoman.

    Workaround: Avoid using multibyte characters in the name of the project or the path to the project.

  • Issue #167401: IDE randomly freezes on MacOS X systems using JDK 1.6.0 update 13.

    Description: IDE may randomly freeze when browsing through the main menu bar due to Apple JDK bug #6993269.

    Workaround: Either switch to a different JDK version or modify the default start up options of the netbeans.conf file to -J-Dapple.laf.useScreenMenuBar=false.

  • Issue #200826: On Windows 7, newly installed IDE running on JDK 7 won't connect to network.

    Description: In some cases the firewall of the local system may filter responses from the network while connecting to a remote host. When connecting to a remote host the JDK will first attempt to use IPv6 and then IPv4. The firewall may filter out a negative response from the host when using IPv6 with the result that the JDK does not attempt to connect to the host using IPv4.

    Workaround: Modify the netbeans.conf to add the -J-Djava.net.preferIPv4Stack=true command line switch, or modify the NetBeans options of the environment variable.

  • Issue #201531: On Mac OS X, the IDE may hang while editing Java code.

    Description: On Mac OS X, the IDE may hang while editing Java code, which is presumably implied by a bug in the Apple JDK.

    Workaround: Use Java for Mac OS X Developer Preview 11M3614+10M3614 or newer or wait for official release of Java 6 update.

  • Issue #211236: JDK crash when invoking 'View data' in Slowness reporter dialog on Mac OS X

    Description: Clicking the View Data button in the slowness reporter dialog box may cause the JDK to crash on machines running Mac OS X 10.7 and JDK 7u4.

    Workaround: Do not click View Data button.

Web and Java EE

The unresolved Web and Java EE issue for this release is as follows:

  • Issue #183614: Step Into does not work properly with EJB.

    Description: When debugging a servlet, Step Into an EJB call stops at unrelated code.

    Workaround: Set a breakpoint in the EJB implementation code and use Step Over.

JavaFX

The unresolved JavaFX issue for this release is as follows:

  • Issue #209915: Projects do not run as WebStart on Mac with JDK 7u4.

    Description: Not possible to run a Java or JavaFX project using WebStart on Mac OS X if the Java platform is JDK 7u4.

    Workaround: No workaround. WebStart on Mac OS X is not implemented in JDK 7u4.

Mac Install Jdk

Java ME

NetBeans enables you to develop Java ME based applications for MIDP, CLDC and CDC devices.

The unresolved Java ME issue for this release is as follows:

  • Issue #208647: CDC Application sources are marked red.

    Description: Newly created CDC Application shows errors in source code. This is a problem in the editor. There is no problem with the source code.

    Workaround: Ignore the errors. The application will run in the emulator.

PHP

The unresolved PHP issue for this release is as follows:

  • Issue #201449: FTP and SFTP do not work with Java 7 on Windows 7 or Vista.

    Description: Windows 7 or Windows Vista users running the NetBeans IDE on JDK 7 may experience FTP and SFTP communication failure.

    Workaround: Check Windows Firewall. Windows Firewall blocks some FTP and SFTP operations launched by JDK 7. See NetBeans Configuring Windows Firewall For Passive FTP User FAQ for details.

C/C++

NetBeans C/C++ support C, C++, Fortran and various Assemblers (x86, SPARC, etc.) applications on Microsoft Windows, Macintosh OS X, Linux, and the SolarisTM Operating System. C/C++ developers can bring existing applications into the NetBeans project system, or develop new applications and libraries. NetBeans C/C++ support covers the end-to-end development cycle: projects and templates, an advanced language-aware editor, makefile-based builds, and debugging.

  • Issue #195121: Versioning framework does not work in full remote mode.

    Description: The versioning framework often works in terms of java.io.File, which makes it impossible to create a plugin capable of working with remote file objects.

    Workaround: Use versioning tools directly on the remote host via ssh, etc.

  • Issue #200196: On some platforms, where GDB 7.2 is used, 'Step Over' sometimes behaves as 'Continue'.

    Description: On some platforms, where GDB 7.2 is used, 'Step Over' sometimes behaves as 'Continue'.

    Workaround: Try an earlier GDB version or specify 'Console Type' (Project Properties > Run) from 'Internal Terminal' to another option.

More Information

You can find news, articles, additional modules, and other useful information on the NetBeans project web site. Since NetBeans is an open-source project, the web site also provides access to source code, a bug database, information on creating your own NetBeans modules, and much more. For more information, visit http://netbeans.org.

Documentation

To get the most out of the features in NetBeans IDE 7.1.2, check out our web-based tutorials at the NetBeans IDE Documentation page.

Mac Os Jdk Install

Additional reference documentation resources include:

  • The NetBeans User FAQ has many workarounds and troubleshooting tips not included in the Release Notes.
  • The IDE's built-in help system has detailed support information for features included in all of the NetBeans IDE modules.
  • See Using NetBeans IDE on the Mac OS X for information about keyboard equivalents, tips, tricks, and other Mac-specific topics.

Community

Keep up to date on the the latest developments and interact with the NetBeans community by signing up for NetBeans project mailing lists at https://netbeans.org/community/lists.

Netbeans Jdk Download 64 Bit

You can post questions at http://forums.netbeans.org. The forums are synchronized with the most widely used NetBeans mailing lists. Note that a separate sign up for the forums is required.

Please visit the community translation information page at http://nblocalization.netbeans.org to learn how to contribute to additional language localizations of the NetBeans UI, help and user documentation.