Software⏱️ 3 min read📅 2026-06-15

How to Fix: Unusal Error during Java EE SDK Install

Java EE SDK installation error with JDK 7 and Java EE 6.

Quick Answer: The issue is due to the difference between JDK and JRE. Installing both JDK 6 and JDK 7 may cause conflicts, but using only JDK 7 should resolve the problem.

The error 'Could not find required version of Java(TM) 2 Runtime' occurs when trying to install Java EE 6 with JDK 7. This issue affects users who have installed JDK 7 and attempted to install Java EE 6, despite having the latest version of JRE available.

This error can be frustrating for developers who are trying to set up a development environment for Java EE 6. However, there is an alternative solution that does not require installing multiple versions of JDK.

💡 Why You Are Getting This Error

  • The primary reason for this error is the way Java EE 6 is designed to work with the Java Runtime Environment (JRE). Java EE 6 requires a specific version of JRE to be installed in order to function correctly. In this case, the JRE version required by Java EE 6 is JDK 6, despite the availability of JDK 7.
  • Another possible reason for this error could be due to the way NetBeans is configured to work with JDKs. It's possible that NetBeans is not properly detecting the presence of JDK 7, leading to the incorrect assumption that JRE 6 is required.

🔧 Proven Troubleshooting Steps

Installing a Compatibility Layer

  1. Step 1: To resolve this issue, you can install a compatibility layer such as the 'Java EE 6 Compatibility Layer' for NetBeans. This layer allows you to use JDK 7 with Java EE 6, while still maintaining compatibility with JRE 6.
  2. Step 2: To install the compatibility layer, follow these steps: Open NetBeans and go to Tools > Libraries > Available Libraries. Search for 'Java EE 6 Compatibility Layer' and select it. Click Install to proceed with the installation.
  3. Step 3: Once installed, you should be able to use JDK 7 with Java EE 6 without any issues.

Installing Multiple Versions of JDK

  1. Step 1: As an alternative solution, you can install multiple versions of JDK on your system. This will allow you to have both JRE 6 and JDK 7 installed simultaneously.
  2. Step 2: To do this, follow these steps: Download and install JDK 6 from the official Oracle website. Once installed, ensure that JRE 6 is not already installed on your system. If it is, uninstall it before proceeding with the installation of JDK 7.

✨ Wrapping Up

In conclusion, the error 'Could not find required version of Java(TM) 2 Runtime' can be resolved by installing a compatibility layer or multiple versions of JDK. By following one of these solutions, you should be able to successfully install Java EE 6 with JDK 7.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions