Repository: triplea-game/triplea

Issue #3297: com.apple.eawt not working for Java 9+
Created: 2018-03-18T21:59:48Z
Engine version
1.9.0.0.9687
My Operating System
macOS 10.13.3 (High Sierra)
Map name
WW2 classic 3E
Can you describe how to trigger the error? (eg: what sequence of actions will recreate it?)
Start a local game, configure AI players, click "Play"
Do you have the exact error text? Please copy/paste if so
TripleA engine version 1.9.0.0.9687
Loading map: world_war_ii_classic, from: /Users/dmoles/triplea/downloadedMaps/world_war_ii_classic-master.zip
Loading resources from the following paths: [/Users/dmoles/triplea/downloadedMaps/world_war_ii_classic-master.zip, /Applications/TripleA.app/Contents/java/app/assets]
Loading map: world_war_ii_classic, from: /Users/dmoles/triplea/downloadedMaps/world_war_ii_classic-master.zip
Loading resources from the following paths: [/Users/dmoles/triplea/downloadedMaps/world_war_ii_classic-master.zip, /Applications/TripleA.app/Contents/java/app/assets]
Error: com/apple/eawt/QuitHandler
java.lang.NoClassDefFoundError: com/apple/eawt/QuitHandler
	at games.strategy.triplea.ui.menubar.FileMenu.addExitMenu(FileMenu.java:104)
	at games.strategy.triplea.ui.menubar.FileMenu.<init>(FileMenu.java:45)
	at games.strategy.triplea.ui.menubar.TripleAMenuBar.<init>(TripleAMenuBar.java:35)
	at games.strategy.triplea.ui.TripleAFrame.<init>(TripleAFrame.java:247)
	at games.strategy.triplea.TripleA.lambda$startGame$0(TripleA.java:121)
	at games.strategy.ui.SwingAction.lambda$invokeAndWait$0(SwingAction.java:86)
	at games.strategy.ui.SwingAction.lambda$invokeAndWaitResult$1(SwingAction.java:114)
	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)
Caused by: java.lang.ClassNotFoundException: com.apple.eawt.QuitHandler
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	... 21 more

Instead of this error, what should have happened?
Game should start
Any additional information that may help
$ java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

Duplicate issue #2976: Website, download map with TripleA button does not work (mac)
Created: 2018-02-10T12:11:09Z
With a mac, clicking the:

http://triplea-game.org/map/270bc/
Get:

Chrome just does nothing.
(On linux I see this working, application launches and downloads)

Closing comment (2018-03-19T17:48:35Z): Related to #3297
It might be possible to use the eawt packages/the native java 9 packages
But I really have no idea what kind of event is being triggered, or if this protocol event can even be handled