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

Client does nothing under macOS High Sierra #61

Open
jwolz opened this issue Sep 12, 2018 · 6 comments
Open

Client does nothing under macOS High Sierra #61

jwolz opened this issue Sep 12, 2018 · 6 comments
Assignees
Labels
bug Something isn't working major

Comments

@jwolz
Copy link
Owner

jwolz commented Sep 12, 2018

Original report by Anonymous.


Hey.
I recently upgraded to a new MacbookPro with High Sierra version 10.31.1 and Java version 10.0.2
I downloaded the client version 6.2., unpacked it and started it.

The program also appears in the Dock, but no window opens.

@jwolz
Copy link
Owner Author

jwolz commented Sep 17, 2018

Original comment by Jns Hnz (Bitbucket: jnshnz, GitHub: jnshnz).


I have exactly the same problem, running

  • macOS 10.13.6
  • JRE 10.0.2+13
  • YajHFC 0.6.1 (1).

@jwolz jwolz added major bug Something isn't working labels Oct 8, 2019
@TheCranston
Copy link

Is the issue is around the com.apple.{eawt,eio} APIs being deprecated? The change is documented at: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8048731

I can confirm that it it fails with JRE 11.
SEVERE: An uncaught exception occurred during event dispatching (Thread: Thread[AWT-EventQueue-0,6,main]): java.lang.NoClassDefFoundError: com/apple/eawt/ApplicationListener at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:377) at yajhfc.macosx.MacOSXSupport.getInstance(MacOSXSupport.java:64) at yajhfc.MainWin.initializePlatformSpecifics(MainWin.java:2024) at yajhfc.MainWin.initialize(MainWin.java:1939) at yajhfc.launch.Launcher2$NewInstRunner.run(Launcher2.java:528) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) 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) Caused by: java.lang.ClassNotFoundException: com.apple.eawt.ApplicationListener at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 19 more

@jwolz
Copy link
Owner Author

jwolz commented Jan 10, 2021

Thank you, that would explain the problem.

I will look if I can modify the code so that it fails more gracefully.
Only problem is that I currently do not have access to a Mac, so I cannot really test that.

@jwolz jwolz self-assigned this Jan 10, 2021
@kettenbach-it
Copy link

I can confirm this on MacOS 11.2 Big Sur with Oracle JDK 16

@kettenbach-it
Copy link

Using openjdk8 from brew will run it:

brew install openjdk@8

And then:
/usr/local/Cellar/openjdk@8/1.8.0+282/bin/java -jar yajhfc.jar

openjdk9 from adoptopenjdk won't work under Big Sur anymore, because of SIP.

Sooner or later Yajhfc on Mac OS will be dead, since the ancient JDKs won't run anymore and the JDKs after 10 won't have com.apple.awk anymore.

jwolz added a commit that referenced this issue Mar 23, 2021
@jwolz
Copy link
Owner Author

jwolz commented Mar 30, 2021

I made a quick fix that should allow YajHFC to run if the com.apple.eawt.* classes cannot be found.

You can find a build including this fix under https://download.yajhfc.de/betas/

Lacking a Mac, it is not tested if this really works, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

3 participants