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 you need a free and useful Java IDE for developing Java programs, download NetBeans now. Free Java IDE software and runs on Windows, Mac OS X, Linux and other platforms supporting a compatible JVM. Can develop all Java applications like Java SE, Java FX, web, EJB and mobile applications. Trusted Mac download Apache NetBeans 12.4. Virus-free and 100% clean download. Get Apache NetBeans alternative downloads. NetBeans is a free, open-source integrated development environment (IDE) for the Java programming language. However, it also has extensions for C/C, PHP, HTML5, and more. It lets users develop applications using these languages in a single program from modules. The IDE also boasts a worldwide community of developers. The NetBeans IDE is free, Open-Source Integrated Development Environment for software developers. The IDE runs on many platforms including Windows, Linux, Solaris, and the MacOS.
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.
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:
After knowing that Homebrew is installed, you need to install the latest JDK on your Mac. Import mp3 to garageband. 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.
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 ❤️!