After trying to install Apache Netbeans as everyone would do in Mac through the official installer on the apache website, I faced a common issue that seems to be happening to everyone in Macs with Big Sur and the apple silicon. Even though the latest version of the Java Development Kit is installed properly in the machine (/usr/libexec/java_home -V
):
Cross Platform Apache NetBeans can be installed on all operating systems that support Java, i.e, Windows, Linux, Mac OSX and BSD. 2.1 Installing the Java Development Kit. The most complete and up-to-date versions of the Java Development Kit (JDK) are available from Oracle for Linux, Mac OS, Solaris, and Windows.
If I try to run the installer in the pkg of Netbeans, the following error appears:
claiming that the Java Development Kit isn't installed, even though with the previous command, I showed that it's installed. The problem, in this case, is the way in which you are installing Netbeans on your Big Sur system.
- This Video tells you how to download NetBeans IDE for Mac or MacOS.In this tutorial, we will learn how to install NetBeans IDE on Mac OS X. NetBeans IDE (Int.
- NetBeans IDE is a free and open source integrated development environment for application development on Windows, Mac, Linux, and Solaris operating systems. The IDE simplifies the development of web, enterprise, desktop, and mobile applications that use the Java and HTML5 platforms.
1. Install Homebrew if it's not installed
In case that you don't have Homebrew installed on your Mac, you need to follow this tutorial that we wrote on how to install Homebrew. After installing homebrew, you may proceed with the next steps. After installing, you may verify the version of homebrew with the following command:
Or if you are using an ARM-based Mac (M1), with the following one:
2. Install the latest JDK
After knowing that Homebrew is installed, you need to install the latest JDK on your Mac. You can download it from the official oracle website here. In our case, JDK 16 did the trick, however, if you face any problem with that one, download the JDK 8 instead.
Netbeans C++ Mac
3. Install Apache Netbeans
Finally, you should be able to install Netbeans easily using a simple instruction instead of downloading Netbeans from the apache website. Run the following command to start with the installation of Netbeans:
Or if you are using an ARM-based Mac (M1), with the following one:
And that's it, once the execution of the instruction finishes, you should be able to launch Netbeans from the launchpad just like any other program:
Happy coding ❤️!
After trying to install Apache Netbeans as everyone would do in Mac through the official installer on the apache website, I faced a common issue that seems to be happening to everyone in Macs with Big Sur and the apple silicon. Even though the latest version of the Java Development Kit is installed properly in the machine (/usr/libexec/java_home -V
):
If I try to run the installer in the pkg of Netbeans, the following error appears:
claiming that the Java Development Kit isn't installed, even though with the previous command, I showed that it's installed. The problem, in this case, is the way in which you are installing Netbeans on your Big Sur system.
1. Install Homebrew if it's not installed
In case that you don't have Homebrew installed on your Mac, you need to follow this tutorial that we wrote on how to install Homebrew. After installing homebrew, you may proceed with the next steps. After installing, you may verify the version of homebrew with the following command:
Or if you are using an ARM-based Mac (M1), with the following one:
2. Install the latest JDK
After knowing that Homebrew is installed, you need to install the latest JDK on your Mac. You can download it from the official oracle website here. In our case, JDK 16 did the trick, however, if you face any problem with that one, download the JDK 8 instead.
3. Install Apache Netbeans
Finally, you should be able to install Netbeans easily using a simple instruction instead of downloading Netbeans from the apache website. Run the following command to start with the installation of Netbeans:
Or if you are using an ARM-based Mac (M1), with the following one:
And that's it, once the execution of the instruction finishes, you should be able to launch Netbeans from the launchpad just like any other program:
Netbeans Download Macos
Happy coding ❤️!