Hello,
After upgrading jEdit to 5.5.0, I've started getting the following error at every launching (I haven't seen any problem which caused by this though)
java.lang.NoSuchMethodException: com.apple.eawt.Application.addApplicationListener(com.apple.eawt.ApplicationListener)
at java.base/java.lang.Class.getDeclaredMethod(Unknown Source)
at macosx.OSXAdapter.setHandler(OSXAdapter.java:121)
at macosx.OSXAdapter.setQuitHandler(OSXAdapter.java:50)
at macosx.MacOSXPlugin$1.run(MacOSXPlugin.java:67)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue.access$500(Unknown Source)
at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
jEdit version: 5.5.0
platform: OSX 10.12.6
Java version: Oracle Java 9.0.4
step to reproduce: Simply launch jEdit with MacOSXPlugin enabled, and you'll see "7 error(s)" on the status bar
Thanks,
Kohei
The same happens with recent OpenJDK 11 on macOS 10.13.6, see the included log.
Last edit: Makarius 2018-10-05
Java 9 has official discontinued some old macOS desktop features. Instead there are regular JDK operations for that. See also:
See also https://sourceforge.net/p/jedit/plugin-bugs/1875
This should long be fixed already in the newer Mac OS Support 1.5 plugin, which will also be shipped with jEdit 5.7.0, but can also manually be installed through the plugin manager.