I So the procedures with setting java_home and that stuff did not work for me. What I did is download the binary zip from netbeans, and opened etc/netbeans.conf. In here, you can simply set the path to your JDK (netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home"), where you'll need to remove the # in front of this line. If you now run bin/netbeans in this folder, you can run netbeans. Let me know if this helps!
for example:netbeans_jdkhome="/usr/lib/jvm/java-1.8.0-openjdk-amd64"ornetbeans_jdkhome="/usr/lib/jvm/java-8-oracle"If path_to_java is incorrect, replace it with your actual java path.check your actual path by using $JAVA_HOME and copy it.Note this path is without /bin directory, so don't include /bin at the end of the path.
f448fe82f3