I’‘m trying to compile my own Spark (from svn http://svn.igniterealtime.org/svn/repos/spark/tags/spark_2_5_4), but when I run it into eclipse or with my own compiled jar, Spark never go to the systray. If I “X” Spark, the window disappear but the app doesn’'t exit.
I looked at the code and I didn’'t find anything related the only mention to the word tray in all source code is in LoginDialog.java :
private void startSpark() {
// Invoke the MainWindow.
final MainWindow mainWindow = MainWindow.getInstance();
/*
if (tray != null) {
// Remove trayIcon
tray.removeTrayIcon(trayIcon);
}
*/+
There is no “tray” word anywhere in the source code… So, where is the tray support ?
The system tray was removed and placed into the jniwrapper plugin for windows and linux and the apple.jar plugin for OSX. Take a look inside your app to see if the plugins dir is being loaded correctly.