One of the notifications in your screen shot ( "Install nb-javac Library" ) indicates the probable cause of your problems. To fix that you need to install the nb-javac library:
Select Tools > Options > Java > GUI Builder
Your Options window will look similar to this if the nb-javac plugin is not installed:
You don't need to do anything beyond opening that tab to provoke the NetBeans Installer to invite you to install the nb-javac plugin:
click Next > and complete the wizard to install the nb-javac plugin.
No restart of NetBeans is required to ensure that the plugin has been installed successfully. Just navigate to Tools > Plugins > Installed and check for the presence of an entry labeled " The nb-javac Java editing support library ":
Finally, verify that you can now run your project.
If you still have problems after installing nb-javac then click the " Unexpected Exception " entry in the Notifications window (as shown in your screen shot), and update your question with the extra details NetBeans provides.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.