Recommended7u10

Contents

Recomended JDK 7u10 and newer

Related to http://netbeans.org/bugzilla/show_bug.cgi?id=218822

Basics

Due to several bugs there is a requirement to minimal JRE/JDK version for IDE run. In short for Java 6 it's 6u26 and for Java 7 it's 7u10. While running on older versions there can appear some JRE/JDK related bugs and deadlock which NetBeans cannot deal with.

Because of this can happen there is a check in NetBeans IDE installer to avoid installation on these old Java versions. For Windows, Linux and Solaris, where the NBI installer is used the behavior of this check is same but on Mac where the Mac native is used, the behavior differs from the NBI. Using NBI installer the installation of IDE using JRE/JDK 7u9 and older is allowed, but user is noticed. On Mac the user cannot install the NetBeans IDE on JRE/JDK 7u9 and older.

Whereas the JRE/JDK 7u9 and older are not supported, their usage is not recommended and bugs reported against them will be resolved as WONTFIX.

NBI NetBeans IDE installer (all systems except Mac)

We have to differ several situations:

You have on your system (we suppose 6u25 is too old and counting only with 6u26 and newer):

  • No JDK
  • JDK 6 only
  • JDK 7u9 or older only
  • JDK 7u10 or newer only
  • JDK 6 and 7u9 or older
  • JDK 6 and 7u10 or newer

Note: Only JDK is mentioned, but the same is valid for JRE. On JRE can run only PHP and C/C++ bundles. Others need JDK to run.

And now let's look, how installer and IDE will behave.

No JDK

If you don't have JDK installed on your system, you cannot run neither installer nor NetBeans IDE. You can try to launch it but immediately you get the message you don't have JDK.

JDK 6 only/JDK 7u10 or newer only

(JDK 6u26 and newer is supposed)

In this case you have no problem and both installer and IDE will run.

JDK 7u9 or older only

You can start installer and pass it, but on the panel, where you are choosing JDK you will see warning which is telling you that you have old and unsupported JDK version, but you can continue with installation.

JDK 6 and 7u9 or older

(JDK 6u26 and newer is supposed)

If you have installed JDK 6 and 7u9 or older on your system, the installer will recommend you to use JDK 6. You are able to switch to JDK 7 but same as in previous case you will be warned.

JDK 6 and 7u10 or newer

This is also good and non problematic case. You can choose any of the JDKs. The default selected JDK will be the newest one newer than 7u10 including.

Summary

Below you can find tables showing on what JRE/JDK the IDE will run or is recommended to run.

  • Win/Lin warning message - this message will show if the user has older 7uX selected in the combo box of Java selection:
This JDK version is older than the recommended JDK 7u10. For stability reasons we recommend that you download
and install the latest JDK 7 update from http://www.oracle.com/technetwork/java/javase/downloads/index.html
and restart NetBeans installer.

File:Warning_jdk_7u10_issue.png

C/C++ PHP
JRE 6u25 and older Not recommended Not recommended
JRE 6u26 and newer Yes Yes
JRE 7u9 and older Not recommended Not recommended
JRE 7u10 and newer Yes Yes


Java SE Java EE C/C++ PHP All
JDK 6u25 and older Not recommended Not recommended Not recommended Not recommended Not recommended
JDK 6u26 and newer Yes Yes Yes Yes Yes
JDK 7u9 and older Not recommended Not recommended Not recommended Not recommended Not recommended
JDK 7u10 and newer Yes Yes Yes Yes Yes

Mac installer

On Mac the situation quite differs from all other platforms. One of the reasons is that the Java 7 isn't on the Mac platform for so long time and earlier versions than 7u10 weren't so stable. Also there is not used the NBI but installer is based on the Mac native installer.

Possible cases are similar to previous platforms:

  • No JDK
  • JDK 6 only
  • JDK 7u9 or older only
  • JDK 7u10 or newer only
  • JDK 6 and 7u9 or older
  • JDK 6 and 7u10 or newer

What happens for different cases:

No JDK

Nothing happens. Installer will start, but you will be told, that you don't have Java on your system.

JDK 6 only/JDK 7u10 or newer only

(JDK 6u26 and newer is supposed)

No problem, you can run installer and NetBeans IDE in that case. The current Java will be used.

JDK 7u9 or older only

That's bad case for you. Instead you have Java on your system, NetBeans requires 7u10 or newer version to run. Therefore you cannot pass the installation and IDE launcher will prevent to run IDE on that version of Java.

JDK 6 and 7u9 or older

It may be quite confusing case. You have 7u9 and some "old" 6 JDK, but after installation you noticed your NetBeans IDE is running on "old" JDK version 6. That's because 7u9 or older are not supported and 7u10 or newer JDK is required.

The user will be noticed during installation, that Java 6 is used to run but update to 7u10 or newer is recommended.

See How to Check Requirements on Mac

As soon as you installed new JDK 7u10 or newer, then the current Java is used.

JDK 6 and 7u10 or newer

Another non problematic case. The current Java will be chosen.

Summary

Below you can find tables showing on what JRE/JDK the IDE will run or is recommended to run.

In the case if no Java installed

  • Error title:
No Java found
  • Error message:
NetBeans IDE cannot be installed. This software can be installed with
Java 6 or Java 7 update 10 or newer. Please download and install
the latest update of Java 7 from
http://www.oracle.com/technetwork/java/javase/downloads/index.html
and restart NetBeans installation.

image:Recommended7u10_No_java.tiff

Found only Java 7 older than Update 10

  • Error title:
Required Java version not found
  • Error message:
NetBeans IDE cannot be installed. This software can be installed
with Java 6 or Java 7 update 10 or newer. Please download
and install the latest update of Java 7 from
http://www.oracle.com/technetwork/java/javase/downloads/index.html
and restart NetBeans installation.

image:Recommended7u10_Older_java_7_only.tiff

Java 6 found, Java 7 found older than Update 10

  • Warning title:
Unsupported version of Java 7
  • Warning message:
NetBeans IDE will be installed with Java 6. For the Java 7 to be used
with NetBeans, it is required that Java 7u10 or newer is installed.
Please download and install the latest update of Java 7 from
http://www.oracle.com/technetwork/java/javase/downloads/index.html
and restart NetBeans installation if you want to use NetBeans with Java 7.

image:Recommended7u10_Java_6_and_older_java_7.tiff


C/C++ PHP
JRE 6u25 and older Not recommended Not recommended
JRE 6u26 and newer Yes Yes
JRE 7u9 and older No No
JRE 7u10 and newer Yes Yes


Java SE Java EE C/C++ PHP All
JDK 6u25 and older Not recommended Not recommended Not recommended Not recommended Not recommended
JDK 6u26 and newer Yes Yes Yes Yes Yes
JDK 7u9 and older No No No No No
JDK 7u10 and newer Yes Yes Yes Yes Yes
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo