Building from the response of @remenechelli, you can find this solution by googling "downloading apache netbeans 12.1" and choosing the netbeans link with the corresponding title. For some reason I cannot include a link in the post. Here is a more in depth explanation for anyone who isn't familiar with the command line
Essentially, as remenechelli described, use this command
to go to the appropriate folder to see the JDK version folder's you have. I have one version folder, "jdk-11.0.7.jdk". Use the "cd" command to go into the version folder of the version you'd like to use (for me: cd jdk-11.0.7.jdk), then use
to get to your JDK version home directory. This is the directory your app launcher needs to use in order to start NetBeans. Normally it can find this on it's own, but we can explicitly tell it where to look as well, which is what we need to do to run NetBeans 12.1 on BigSur. From here you can use the "pwd" command to print the path to the home directory you are in, which will look very similar to this:
Copy this path, then use this command to get to the netbeans folder with the configuration file you need to edit.
|cd /Applications/NetBeans/Apache\ NetBeans\ 12.1.app/Contents/Resources/NetBeans/netbeans/etc|
use a text editor to open the netbeans.conf file in this folder:
If you are using vim (or vi), scroll to the bottom(ish) of the file where you'll see
Press the "I" key to enter Insert mode. Remove the pound symbol at the beginning and replace pathto
file with the path you copied (with double quotes around it). mine looks like this:
To exit insert mode press the "esc" key. Then to save and quit the vim/vi text editor, type ":wq". You should now be able to launch NetBeans 12.1 on BigSur.