Issue
On Mac (Big Sur) when I click on the Netbeans 12 icon in the doc it bounces briefly then fails to launch Netbeans.
Solution
The answer helped me launch Netbeans from the terminal. I added this change to make my dock icon launch Netbeans like before.
I changed the Netbeans config file to make it launch with the Java path:
- Like the previous post indicates find your JDK path with this command in the Terminal
/usr/libexec/java_home -v '1.7*'
- Now add this path to the Netbeans conf file. To do this:
- right click on the Netbeans icon in the dock and select Open in Finder
- in the smaller icon it shows right click again and select Show sources
- find the netbeans.conf file in folder Resources/NetBeans/netbeans/etc/netbeans.conf
- open this netbeans.conf file with a TextEditor or similar and find the line
#netbeans_jdkhome="/path/to/jdk"
Uncomment this line and change it for your path (the one you found in point 1) something like
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-15.jdk/Contents/Home"
Save the netbeans.conf file and try and launch from the Dock icon
Answered By - Gemma