I Am using MacBook Air 2019 and have recently update to BigSur, and when opening Netbeans it immediately crashes without telling me anything. Please Help me fix it.
Apache Netbeans 12.1 Crashing After macOS BigSur Update
Something isn't working with either Netbean's launcher, or perhaps the JDK installations, such that Netbeans no longer detecting the JDK properly anymore.
1) Open terminal
2) run /usr/libexec/java_home
3) copy output
....(i.e. /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home)
...I've also seen reports that the above command isn't working with certain jdk versions, so alternatively manually navigate to /Library/Java/JavaVirtualMachines/ and find your JDK path.
4) right click Netbeans app and choose "show package contents"
5) open netbeans.conf within Contents/Resources/NetBeans/netbeans/etc/netbeans.conf
6) uncomment the line with #netbeans_jdkhome... and paste the path your copied earlier
....(i.e. netbeans_jdkhome="/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home")
1) Open terminal
2) run /usr/libexec/java_home
3) copy output
....(i.e. /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home)
...I've also seen reports that the above command isn't working with certain jdk versions, so alternatively manually navigate to /Library/Java/JavaVirtualMachines/ and find your JDK path.
4) right click Netbeans app and choose "show package contents"
5) open netbeans.conf within Contents/Resources/NetBeans/netbeans/etc/netbeans.conf
6) uncomment the line with #netbeans_jdkhome... and paste the path your copied earlier
....(i.e. netbeans_jdkhome="/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home")
I simply downloaded intellJ idea 2020, and imported all my works, instead of all the path work changing.