Netbeans 12 and Big Sur

Has anyone test latest version of Netbeans with Big Sur?. It is running fine?
Thanks!!
Hi!

For me, it is running "quite" fine.
It's possible to use it in its most features. But, once you open some dialogs such as Project Preferences or Plugins, it freezes and start blinking... Can't figure it out what is goin on...
Stop working for me, since Big Sur was installed.
Not found any solution.
I was installed JDK
Open Terminal and check de javahome with command: /usr/libexec/javahome
The result is: /Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home

I open /Applications/NetBeans/Apache NetBeans 12.1.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf
I copy the last directory showing in terminal and past in netbeans.conf in property netbeansjdkhome=

Like this
netbeans
jdkhome="/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home"

It's fine here now

Same here, dialogs block and NetBeans freezes. This *is* a problem
Hi,

I had the same issue but as mentioned by @remenechelli, so I did following things

Code Block
$ /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home
$ nano /Applications/NetBeans/Apache\ NetBeans\ 12.1.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf


then uncommented following line
Code Block
#netbeans_jdkhome="/path/to/jdk"

and replaced it with the above output
Code Block
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home"


Please Note: I am using NetBeans 12.1 if someone is using diff version then please the path accordingly.

That's it, Hope it helps!
Hi, I successfully launch netbeans 12.1 in big sur but the problem now is that it does not have access to files or folders, when trying to open a project it just does not show. I tried give full disk access but didn't work either. Has anyone an idea of how to fix this?
Mine isn't opening at all and I need to complete a project
Does anyone know how to help?

I am running on 12.1, but it breaks when a dialog is opened. As said before, it blinks and the IDE is stuck.
This is also happening to all Netbeans-based programs: Oracle Modeller for instance.
I have tried with all the JDKs I could find:

AdoptOpenJDK versions 8, 11, and 15 (either using OpenJFX and J9).
Amazon Correto versions 8 and 15.
OpenJDK version 8, 14 and 15.
Zulu JDKFX 8 and 15.

Same problem running on all of them.

Help !!!!

For all that have issues with Java Netbeans-based UI applications (esp. Netbeans, Oracle Data Modeller, etc).
Change "Prefer Tabs" option to Never, and all will work with Big Sur.

Settings -> General -> Prefer tabs: never

Save and restart Netbeans.


For all that have issues with Java Netbeans-based UI applications (esp. Netbeans, Oracle Data Modeller, etc).
Change "Prefer Tabs" option to Never, and all will work with Big Sur.

Settings -> General -> Prefer tabs: never

Save and restart Netbeans.

  • ---This doesn't work.

The precise and correct advice is "System Preferences>General>Prefer tabs: [never] when opening documents".
At least that fixed the problem for me...
There is a problem in NetBean that it don't ask access to directory 'Documents'.
Make program with Automator which call shell script:
/Applications/NetBeans/Apache\ NetBeans\ 12.2.app/Contents/Resources/NetBeans/netbeans/bin/netbeans
for netbean 12.0
/usr/libexec/javahome
/Library/Java/JavaVirtualMachines/jdk-12.jdk/Contents/Home

sudo vi /Applications/NetBeans/Apache\ NetBeans\ 12.0.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf
then search for netbeans
jdkhome
add the below line just below the search line or replace.
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-12.jdk/Contents/Home"
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
Code Block
cd /Library/Java/JavaVirtualMachines


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
Code Block
cd Contents/Home


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:
Code Block
/Library/Java/JavaVirtualMachines/jdk-11.0.7.jdk/Contents/Home


Copy this path, then use this command to get to the netbeans folder with the configuration file you need to edit.
Code Block
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:
Code Block
vim netbeans.conf


If you are using vim (or vi), scroll to the bottom(ish) of the file where you'll see
Code Block
#netbeans_jdkhome="path_to_file"


Press the "I" key to enter Insert mode. Remove the pound symbol at the beginning and replace pathtofile with the path you copied (with double quotes around it). mine looks like this:
Code Block
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-11.0.7.jdk/Contents/Home"


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.
I'm using Apache Netbeans 12.2, after updated to Big Sur 11.1 I couldn't open Netbeans anymore, however I manage to solve it with this
Code Block
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-11.0.7.jdk/Contents/Home"

Thanks to Iraunak

But this part
Code Block
"jdk-11.0.7.jdk"
is the tricky part, 1st you check your java version via terminal, enter
Code Block
java -version or javac -version
then you'll get your current java version on your machine. Mine is
Code Block
1.8_111
then I put it in the string
Code Block
"/Library/Java/JavaVirtualMachines/jdk-1.8_111.jdk/Contents/Home"
Guess what? It works! Not only it solved the "can't open Netbeans after update to Big Sur" problem, it also solved my "couldn't compile SASS and create CSS/source-map" problems. AWESOME!

I hope this will help.
Hi,

after upgrading to MacOS Big Sur, my netbeans 11.2 won't start anymore.
So I changed the setting "netbeans_jdkhome" entry in netbeans.conf but netbeans still no starting.

I installed Netbeans 12.2 with "brew install netbeans" because the web downloaded package didn't find the jdk.

Now Netbeans 12.2 can be launched, but it has no access to the projects and files, nothing can be opened.

By the way I cannot authorize the application to access files and folders under "System preferences > Security " because NetBeans app is not shown there so it cannot be added to the list.
Like @AlephOne told giving all disk access don't change anything.

Any help should be appreciated !

Bernard

Same issue here. After upgraded the system to Big Sur 11.1, my Netbeans cannot read any file. I cannot add jar file to library, I am not able to import any projects either. When I build project, an error will always show on the console saying like "error: error reading file (operation not permitted)"
Same issue here. After upgraded the system to Big Sur, my Netbeans cannot access to any file or folder. Should this be solved by Apple or Netbeans? How to give full access to Netbeans again? Below recommendations dıd not work

Thanks in advance for your help.
as soon as I updated to BigSur NetBeans stopped working I tried what people suggested on youtube and it did not work for me, I downgraded and it worked fine.
Had solved this problem with last BigSur update by creating a project in a subfolder and then copying all other projects into that folder. However, that solution does NOT work with the latest update.
For those who cannot get their Netbeans access to any file or folder, try launch your Netbeans from terminal.

Credit to Bernard @bparis at this thread:
https://developer.apple.com/forums/thread/670638?answerId=655342022#655342022
I had all of the problems mentioned. I had to edit the netbeams configuration file with the location of the JDK as recommended.

I installed NetBeans 12 and tried it with JDK 11. It ran but the dialog boxes froze. I installed JDK 15. Again, it ran but the dialog boxes froze, but this time with a different behavior.

I tried the solution

Settings -> General -> Prefer tabs: never

by jfarjona and that worked for me. All is good now. Thanks for all these suggestions.
I'm trying to install netbeans 12 on mabook m1 but it cannot find the jdk installed on my Mac. I installed three different versions which includes native aarch version from Azul and two more. Please help me out if anyone figured it out!!

Solution:


System Preferences -> General -> Prefer tabs: never


Netbeans 12 and Big Sur
 
 
Q