Reputation: 476
I was in the middle of coding a project in Netbeans v8.2 and all of a sudden it closed down. When I re-opened it I seen the attached screen.I can't open any projects even though I can see them there, and most options are now greyed out. PLEASE anyone help. I run MAC OS. Please can someone tell me how on earth I revert back to an old version?
NetBeans Info Screenshot of now Netbeans
Upvotes: 3
Views: 6341
Reputation: 21
updated mac os to big sur and NetBeans 8.2 Won't Run/Open on Mac
to resolve this problem:
find netbeans.conf
and edited this file in this directory: /Applications/NetBeans/NetBeans\ 8.0.2.app/Contents/Resources/NetBeans/etc/netbeans.conf
and set this line: netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home"
Upvotes: 2
Reputation: 17363
You don't need to revert back to an old version of NetBeans. Your screenshot shows that NetBeans is incorrectly configured to use Java 11.0.1, but your version of NetBeans (8.2) does not support any version of Java greater than 1.8.
To resolve the issue you must reconfigure NetBeans 8.2 to use JDK 1.8:
The line may be commented out with a leading #. If so, uncomment the line by removing that leading # symbol. Then set the value of that property to specify the actual path to your installed version of JDK 1.8 so that the line looks similar to this:
netbeans_jdkhome="/mypath/to/jdk8"
Save your changes and start NetBeans.
If you still have problems, one further thing you could try is to delete your user directory and cache directory:
If you still have problems after doing all that then update your post with:
One related point regarding NetBeans support for different JDK versions:
Upvotes: 7