No Tray Icon in Linux

I can confirm, running 64 bit linux (Ubuntu Gutsy), with Java 1.60, that after putting the linuxplugin.jar file in the plugins directory, that the icon tray is now showing correctly.

Small critique though… the icon is really ugly now…

I’ve recently upgraded from 2.5.4 (with no tray icon) to 2.5.5 with still no tray icon.

I am using Java 1.6:

$ ps auxw | grep spark

myuser 19937 3.1 2.4 212216 51216 ? Sl 10:37 0:04 /usr/lib/jvm/sun-jdk-1.6/bin/java -client …

And here is my plugins directory:

$ ls -ahsl /home/myuser/LocalApps/Spark/plugins/

total 4.1M

0 drwxr-xr-x 2 myuser myuser 248 2007-08-17 10:32 .

512 drwxr-xr-x 11 myuser myuser 576 2007-08-17 08:49 …

316K -rw-rr 1 myuser myuser 315K 2007-08-06 06:41 fastpath.jar

8.0K -rw-rr 1 myuser myuser 8.0K 2007-08-06 06:41 idlelinux.jar

1.2M -rw-rr 1 myuser myuser 1.2M 2007-08-06 06:41 jingle.jar

12K -rw-rr 1 myuser myuser 8.5K 2007-08-17 10:32 linuxplugin.jar

1.9M -rw-rr 1 myuser myuser 1.9M 2007-08-06 06:41 sparkphone.jar

669K -rw-rr 1 myuser myuser 665K 2007-08-06 06:41 spelling-plugin.jar

Other system information of possible use:

$ uname -a

Linux hostname 2.6.19-gentoo-r5 #5 SMP PREEMPT Fri Apr 6 13:11:07 PDT 2007 i686 Intel® Pentium® D CPU 3.00GHz GenuineIntel GNU/Linux

$ kded --version

Qt: 3.3.8

KDE: 3.5.7

After putting the plugin in the plugins directory I restarted Spark. There is no tray icon and if I close the window (not exit) the window disappears but Spark stays running with no way to retrieve the window.

Cheers,

RioGD

Hey,

Have you tried putting the jniwrapper.jar in your plugins directory? It seems to be what you are missing… The link for it is somewhere in this thread…

Hope that helps,

Sam.

Thank you Sam. I have just tried that but it still doesn’t work. My plugins directory now looks like this:

$ ls -ahsl /home/myuser/LocalApps/Spark/plugins/

total 4.8M

0 drwxr-xr-x 2 myuser myuser 280 2007-08-20 08:42 .

512 drwxr-xr-x 11 myuser myuser 576 2007-08-17 08:49 …

316K -rw-rr 1 myuser myuser 315K 2007-08-06 06:41 fastpath.jar

8.0K -rw-rr 1 myuser myuser 8.0K 2007-08-06 06:41 idlelinux.jar

1.2M -rw-rr 1 myuser myuser 1.2M 2007-08-06 06:41 jingle.jar

721K -rw-rr 1 myuser myuser 718K 2007-08-20 08:41 jniwrapper.jar

12K -rw-rr 1 myuser myuser 8.5K 2007-08-17 10:32 linuxplugin.jar

1.9M -rw-rr 1 myuser myuser 1.9M 2007-08-06 06:41 sparkphone.jar

669K -rw-rr 1 myuser myuser 665K 2007-08-06 06:41 spelling-plugin.jar

Thanks for your help,

RioGD

Same deal here…

Just grabbed Spark 2.5.6. Still no tray icon for me. 64-bit Ubuntu 7.04 Dual monitor Nvidia card. No compiz or other fancy stuff.

Output from error log.

java.lang.UnsatisfiedLinkError: /home/wperkins/.Spark/plugins/idlelinux/lib/libLinuxIdle.so: /home/wperkins/.Spark/plugins/idlelinux/lib/libLinuxIdle.so: wrong ELF class: ELFCLASS32

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)

at java.lang.Runtime.load0(Runtime.java:770)

at java.lang.Runtime.load(Runtime.java:758)

at com.jivesoftware.idlelinux.LinuxIdle.<clinit>(LinuxIdle.java:25)

at com.jivesoftware.idlelinux.CheckIdle$1.run(CheckIdle.java:53)

at java.util.TimerThread.mainLoop(Timer.java:512)

at java.util.TimerThread.run(Timer.java:462)

Exception in thread “Timer-9” java.lang.UnsatisfiedLinkError: com.jivesoftware.idlelinux.LinuxIdle.idleTime()J

at com.jivesoftware.idlelinux.LinuxIdle.idleTime(Native Method)

at com.jivesoftware.idlelinux.LinuxIdle.getIdleTime(LinuxIdle.java:16)

at com.jivesoftware.idlelinux.CheckIdle$1.run(CheckIdle.java:53)

at java.util.TimerThread.mainLoop(Timer.java:512)

at java.util.TimerThread.run(Timer.java:462)

I am also not seeing a tray icon in 2.5.6. I’m running Gnome on Fedora Core 6.

I’ve downloaded 2.5.6 and I’m running 64bit Ubuntu 7.04. I can only get the tray icon to work if I download the two jars pasted in the thread above: jniwrapper.jar and linuxplugin.jar.

I also always get the libLinuxIdle.so error in the error.log, but it doesn’t appear to be detrimental.

btw the tray icon does look ugly…

I can get a tray icon ONLY after installing both files and ONLY under gnome-metacity. Tray icon does not work under Compiz-Fusion. All other programs (like skype, amsn, email notification) work fine with both of them.

That’s not really practical for an Ubuntu user as the new Ubuntu runs Compiz by default. I’m not about to switch to metacity for a bad-looking tray icon.

Spark 2.5.7 has fixed the problems I was encountering with the Notifications Area (System Tray) of my Fedora/Gnome desktop. Also, I can now start Spark with the System Tray only.

2.5.7 does not resolve the missing systray icon in Compiz + KDE + the two extra .jars provided earlier in this thread. As an aside I dont use Ubuntu, so in my case Compiz is by choice, not by obligation

Cheers,

RioGD

In my case the ONLY way to get spark notification icon to work is to start in Metacity, run spark, and switch to compiz. Than the icon stays, but every opened window is gray.

Of course that way you cant add spark to autostart.

Thank you,

Rob

I just wanted to say that this plugin worked great with 2.5.7 on rhel41 and kde.

Any chance of adding this plugin to the standard build, since it clearly helps a little in some cases?

Sam.

Agreed, I’m running Spark 2.5.7 with Ubuntu 7.10 and with Compiz enabled Spark loses the ability to add the tray icon for some reason.

If I disable Compiz and go back to the default vanilla config without it, then it gains the ability to display the tray icon again. I would really like to see a fix for this one as well. It’s forcing me to use different clients that support Compiz at the moment.

Is there any ETA on tray icon in composite linux environment? Because of this bug I have to use use gajim/pidgin and I would really like to use spark.

I am having the same problem with Spark 2.5.8 on Fedora 8(Werewolf) x86_64 under Gnome 2.20.3 with desktop effects enabled. Spark came with jniwrapper.jar but not linuxplugins.jar. However, after ensuring that both files are in the plugins directory, the tray icon still does not appear. I’ve also tried running it as root with SElinux disabled and the tray icon still did not appear.

I looked at the logs and found the following exception(s),

Sep 4, 2008 8:01:13 PM org.jivesoftware.spark.util.log.Log error
SEVERE: Error launching browser:
java.io.IOException: Cannot run program “netscape”: java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.jivesoftware.spark.util.BrowserLauncher.openURL(BrowserLauncher.java:506)
at org.jivesoftware.spark.ui.ChatArea.mouseClicked(ChatArea.java:426)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)

Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
… 28 more


Sep 7, 2008 1:21:23 AM org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.UnsupportedOperationException
at java.awt.TrayIcon.(Unknown Source)
at java.awt.TrayIcon.(Unknown Source)
at org.jivesoftware.spark.plugins.LinuxSystemTray.(LinuxSystemTray.java:105)
at org.jivesoftware.spark.plugins.LinuxPlugin.initialize(LinuxPlugin.java:20)
at org.jivesoftware.spark.PluginManager$1.run(PluginManager.java:404)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)

Great find Rob, that worked for me.

I know that Compiz has a problem with Java which causes grey windows. It is fixed in Java 7 Beta but I found it unuseable for other reasons. I have fixed the problem with grey windows but I can’t remember what it is, if I remember I will post back. There is a very small chance that it is to use the JRockit implementation of Java but I think that fixes Tomcat’s out of memory error and not the grey window. However, if you are desperate you can give it a go and see if it works for you. I also remember that finding the JRockit download was very difficult last time! The bookmark I have no longer works - sorry.

When I use Compiz and Spark, in my ~/.Spark/logs directory I have a error.log file which contains:

08-Sep-2008 18:08:58 org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.UnsupportedOperationException
at java.awt.TrayIcon.(TrayIcon.java:105)
at java.awt.TrayIcon.(TrayIcon.java:129)
at org.jivesoftware.spark.plugins.LinuxSystemTray.(LinuxSystemTray.java:105)
at org.jivesoftware.spark.plugins.LinuxPlugin.initialize(LinuxPlugin.java:20)
at org.jivesoftware.spark.PluginManager$1.run(PluginManager.java:404)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27 3)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:17 3)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

That error vanishes when I don’t use Compiz.

By the way, the grey window problem mentioned above when using Compiz and spark may be fixed in sun java-1.6.0_10. The grey windows went away for me in NetBeans when I upgraded to that JDK. I had problems before that using sun jdk1.6.0_06.

Even better than that is that the tray icon works with java-1.6.0_10. I can now start Spark in the tray. I am running Debian lenny with Compiz from the repo (See the first post on this page for how to set the version of Java that Spark uses).

The icon also does not show at my PC.

I run Spark 2.5.8 on Fedora 10 (Linux 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008 i686 i686 i386 GNU/Linux)

./java -version
java version “1.6.0_02”
Java™ SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot™ Server VM (build 1.6.0_02-b05, mixed mode)

(bundled with Spark)

Your linuxplugin.jar works fine for me but the icon is so ugly.

Is there any updated version?

Also, the jniwrapper.jar seems not to be loaded (see my attachment).

I tried to change permission on Spark and all sub-folders to writable for all but no more luck.

Have you got any more advice for me?

Thanks,

Tuan