powered by Jive Software

Where is the tray?

Hello,

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 ?

Thanks.

I found Notifications.java in the SVN for the 2.0.8 release… but this file is not in the SVN for the version 2.5.4.

Fixed…

I used the file Notifications.java from 2.0.8 and added to LoginDialog.java

line 29 this line :

import org.jivesoftware.spark.component.Notifications;

and line 948 this line :

Object notifications = new Notifications();

But I don’'t understand how the tray support has disappeared from the SVN.

Hum, but does nothing when I execute my jar file compiled with fat jar plugin for eclipse :(.

EDIT : Ok, it’'s working if I specify the lib directory that contain tray.dll.

Message was edited by: Ohmer

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.

Cheers,

Derek