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

Reflective error #27

Open
heshriti opened this issue Jul 12, 2021 · 4 comments
Open

Reflective error #27

heshriti opened this issue Jul 12, 2021 · 4 comments

Comments

@heshriti
Copy link

Hi Charles,

I have this error when I try to open studio in mac. It seems to work despite the warnings.
Still, any way these issues can be fixed?

thanks.


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by studio.utils.OSXAdapter (file:studio.jar) to constructor com.apple.eawt.Application()
WARNING: Please consider reporting this to the maintainers of studio.utils.OSXAdapter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
This version of Mac OS X does not support the Apple EAWT. ApplicationEvent handling has been disabled (java.lang.ClassNotFoundException: com.apple.eawt.ApplicationListener)
This version of Mac OS X does not support the Apple EAWT. ApplicationEvent handling has been disabled (java.lang.ClassNotFoundException: com.apple.eawt.ApplicationListener)
OSXAdapter could not access the About Menu
java.lang.NoSuchMethodException: com.apple.eawt.Application.setEnabledAboutMenu(boolean)
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2633)
at studio.utils.OSXAdapter.setAboutHandler(Unknown Source)
at studio.ui.StudioPanel.registerForMacOSXEvents(Unknown Source)
at studio.ui.StudioPanel.(Unknown Source)
at studio.ui.StudioPanel.init(Unknown Source)
at studio.core.Studio$1.run(Unknown Source)

@dzmipt
Copy link
Contributor

dzmipt commented Jul 13, 2021

I suspect you are running on Java 9 or later. It looks they replaced com.applet.eawt.* with something different in Java 9 (more comments see at https://stackoverflow.com/questions/13978471/com-apple-eawt-what-exactly-i-should-install).
I have Java 8 on MacOS. And it works for me.

@heshriti
Copy link
Author

From the java control panel, I have Java 8 too. v 291.

from command line- I have java 15

@heshriti
Copy link
Author

Hi,

anyway to fix these errors?

@dzmipt
Copy link
Contributor

dzmipt commented Dec 10, 2021

@heshriti, I've just added support for native MacOs menu for Java 9+ in my fork: https://github.com/dzmipt/kdbStudio. Any feedback is welcomed.

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