Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalAccessError: jidesoft #72

Closed
weatherfire opened this issue May 25, 2022 · 3 comments
Closed

java.lang.IllegalAccessError: jidesoft #72

weatherfire opened this issue May 25, 2022 · 3 comments

Comments

@weatherfire
Copy link

weatherfire commented May 25, 2022

Getting an Error running from cmd:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: class com.jidesoft.plaf.LookAndFeelFactory (in unnamed module @0x123bb025) cannot access class com.sun.java.swing.plaf.windows.WindowsLookAndFeel (in module java.desktop) because module java.desktop does not export com.sun.java.swing.plaf.windows to unnamed module @0x123bb025
        at com.jidesoft.plaf.LookAndFeelFactory.getDefaultStyle(LookAndFeelFactory.java:539)
        at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(LookAndFeelFactory.java:598)
        at org.jmeld.ui.util.LookAndFeelManager.install(LookAndFeelManager.java:60)
        at org.jmeld.JMeld.run(JMeld.java:49)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Seems relating this one here: jidesoft/jide-oss#26

@albfan
Copy link
Owner

albfan commented May 25, 2022

What's the Java jdk you're using? Looks to me you use an openjdk that do not provide com.sun.java.swing.plaf.windows.WindowsLookAndFeel

I'm unsure about that though, there're workarounds on mentioned issue, but nothing relevant for this project, which is agnostic to OS L&F

@albfan albfan closed this as completed May 25, 2022
@weatherfire
Copy link
Author

weatherfire commented May 25, 2022 via email

@albfan
Copy link
Owner

albfan commented May 26, 2022

Looks Corretto is a amazon jdk? I'm unsure what L&F they support, probably there're codes out there to list available ones.

I think any of this solutions:

Set this system property:
-Djide.defaultStyle=1

Call this before creating any jide components:
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.EXTENSION_STYLE_VSNET);

should work, if you don't want to change code, use the first one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants