I found a solution, however it has minor flaws. Use the Scan On Demand plugin . After restarting Netbeans, background scanning should be turned off by default. Use the update center installation method and disconnect the repository after installation (otherwise, you may mistakenly install unstable updates).
Disadvantage . Most likely, the indexes are outdated, which makes working with Netbeans a little less convenient (as indicated on the plugin page).
Scan On Demand - Download and Installation Instructions
Edit: The error persists, but using the following options makes the job less important. Add this line to netbeans_default_optionsin netbeans.conf :
-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
Works for me on a Win7, 64b, NB 7.2, JDK 1.703 machine