We're updating the issue view to help you get more done. 

System tray not appearing on certain users computers.


Some users have reported that the system tray no longer shows up on their system. The only change was a move to the JNIWrapper, so I'm guessing that is the culprit. Will need to find and fix.



Acceptance Test - Entry



Alex Kelly
August 23, 2007, 12:28 AM

I rebuilt our skinned version using 2.5.5 and the systray icon is NOT working in either windows or linux. I have downloaded the non-skinned version for linux and it also is NOT working.

Anselm McClain
August 25, 2007, 12:37 AM

For me it turned out to be a permissions issue in the spark application directory - users run as non-admins, and so couldn't create new directories underneath c:\program files\spark. When Spark went to expand the plugin JARs, it couldn't, so the JNI wrapper jar never blew up and didn't work.

Adding a post install step to open up the ACLs on this directory before Spark is launched for the first time solved it.

Cheers - ATM

Ronald van Zantvoort
August 27, 2007, 5:09 PM

I agree with Anselm.

The issue (
java.lang.NoClassDefFoundError: java/awt/TrayIcon
at com.jivesoftware.plugin.jniwrapper.NativeSystemTray.<init>(NativeSystemTray.java:102)
at com.jivesoftware.plugin.jniwrapper.JNIWrapperPlugin.initialize(JNIWrapperPlugin.java:40)
at org.jivesoftware.spark.PluginManager$1.run(PluginManager.java:398)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Was resolved when running Spark once with full write rights on the plugin directory. This is because the jniwrapper.jar apparently needs to unpack there.
Once it's unpacked, you don't even need the write rights on the plugins directory anymore, and Spark runs fine.

On Linux, the problem should be the same, as the solution.

Szabolcs Illes
October 2, 2009, 5:07 PM

I have the same problem:

Kubuntu 9.04 32 bit with KDE 4.3.1

user owns the folder so has permission to write to folder

Tunc Gercek
May 18, 2010, 5:58 PM

I'm running Spark 2.5.8 on Linux (Fedora 11 and Fedora 12), and it consistently fails to display a system tray icon when I close the main window. I have to "kill" the process in order to terminate Spark.

I've tried Java 1.5 and Java 1.6, and also pointed Spark to use its own "jre" directory, the problem is still the same.

There are no file permission issues:

  • I opened up the whole directory structure to everyone on the computer

  • When that didn't work, I moved the whole directory into the user's home directory

...same problem. No system tray icon.

What am I missing, or is this bug still not fixed?



Derek DeMoro


Derek DeMoro



Expected Effort


Ignite Forum URL



Fix versions

Affects versions