If you run VisualVM on Linux with JDK 11+, you see this in messages.log:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.core.windows.view.ui.MainWindow (jar:file:/tmp/visualvm/platform/modules/org-netbeans-core-windows.jar!/) to field sun.awt.X11.XToolkit.awtAppClassName