wumpz commented on issue #3962:
URL: https://github.com/apache/netbeans/issues/3962#issuecomment-1641479061
Using JDK 17 and digging deep into my logs I found:
```
java.lang.IllegalAccessException: class org.netbeans.TopSecurityManager
cannot access class sun.awt.AppContext (in module java.desktop) because module
java.desktop does not export sun.awt to unnamed module @2e817b38
at
java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
at
java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
at java.base/java.lang.reflect.Method.invoke(Method.java:560)
at
org.netbeans.TopSecurityManager.makeSwingUseSpecialClipboard(TopSecurityManager.java:714)
at
org.netbeans.core.NbLifecycleManager.advancePolicy(NbLifecycleManager.java:71)
at
org.netbeans.core.network.proxy.ProxyAutoConfig$1.run(ProxyAutoConfig.java:81)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1419)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2034)
ยดยดยด
guess where it is thrown: `TopSecurityManager.makeSwingUseSpecialClipboard`
So this method goes only half through the stuff it should do, at least in my
platform application.
I needed to include: `-J--add-opens=java.desktop/sun.awt=ALL-UNNAMED` to get
this `NbClipboard` stuff installed properly.
So this improves the situation in my platform application. In Netbeans IDE
itself this is already set, so the problem stays.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists