Fix of race condition on Windows in AWT.
- Execute
gradlew build - Locate the file
build/libs/clipboard-agent.jar
- Navigate to your NetBeans install directory
- Enter
etcfolder. - Open
netbeans.conf - Add
-J-javaagent:agent_dir/clipboard-agent.jartonetbeans_default_options. - To test that the agent works, it is recommended that you run NetBeans from the terminal the first time.
Normal log during agent initialization:
Patched sun.awt.datatransfer.SunClipboard
Patched sun.awt.windows.WClipboard
Applied the clipboard patch