-
Notifications
You must be signed in to change notification settings - Fork 6
Description
If I try to launch the tool with linux I get the following stacktrace:
java -jar bootmonkey-exec-1.0.0.jar
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353)
at com.jme3.bootmonkey.ui.MainWindow.(MainWindow.java:43)
at com.jme3.bootmonkey.ui.MainWindow.main(MainWindow.java:35)
Caused by: java.lang.UnsupportedOperationException: The system tray is not supported on the current platform.
at java.awt.SystemTray.getSystemTray(SystemTray.java:186)
at com.jme3.bootmonkey.ui.MainWindow.setupIcons(MainWindow.java:251)
at com.jme3.bootmonkey.ui.MainWindow.access$000(MainWindow.java:21)
at com.jme3.bootmonkey.ui.MainWindow$1.run(MainWindow.java:52)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
I don't know what the system tray should do for a simple program like this, so a possible "fix" would be just to remove this or only show it for windows. If desired I can look into this and provide a pull request (not supporting system tray on linux)