Hi All,
I''ve searched far and wide through this forum, but cannot seem to find a solution for this problem:
I''m currently using Spark 2.5.4/2.5.2 on linux, and am unable to the tray icon to appear. I''ve tried on two different distributions, using both JDK1.6 and JDK1.5:
- Kubuntu 7.04 32bit
- Suse 10 32bit
The problem is that I start Spark using the standard startup/Spark script. Spark opens up and I can login successfully, but no tray icon appears. I''ve updated the JDIC components in ~/Spark/lib/linux, but it still refuses to show me a tray icon. If, however, I close the window, the process stays running, but there is no icon in the system tray to double click on to open it up again. The only way to bring it back it to kill the process and start the app again.
The only errors I receive on both linux distributions when I startup is:
ls: /opt/Spark/lib/windows: No such file or directory
I also have the following error in the ~Spark/log/error.log:
Exception on commit = java.io.IOException: Can''t find registry file
I''m absolutely stumped as to why this is happening since in the previous 1.x.x Spark versions, it worked like a charm.
Essentially all I''m doing is untarring the Spark download, and modifying the Spark startup script to point towards my local JDK:
e.g. ~/Spark/Spark: INSTALL4J_JAVA_HOME_OVERRIDE=/opt/java
What am I missing? Thanks in advance.
Another me too, but on win32. Additionally, I have confirmed that the tray icon is missing in OS X as well.
I''ve tried this on OSX and Ubuntu and haven''t had any issues. Could you guys post some more details and error logs?
ls: /tmp/Spark/lib/windows: No such file or directory
is the only error printed to console. Logs file are just empty.
On Ubuntu you probably run GNOME. And this looks like KDE problem (on Linux at least).
Message was edited by: haizaar@gmail.com
Message was edited by: haizaar
For those with Win32 try changing the permissions. After upgrading limited users could not see the icon in the system tray. So I changed the permissions to allow everyone to have full control, now limited users can see icon in system tray. Changing the permissions may work in Linux too, but I haven''t tried yet.
http://www.igniterealtime.org/issues/browse/
SPARK-782 is still open.
Can you point me to relevant SVN commit? - I''d like to merge it to 2.5.4. This bug is show-stopper for me and I do not want to wait for 2.5.5 (providing that there is no planned release date yet).
Thanks.
It still isn''t working for me with Spark 2.5.5 either.
The tray icon just doesn''t show at all, although when I tick the Start In System Tray it doesn''t crash like it used to.
Is it something to do with KDE? Because I''m running the latest Sabayon with the latest KDE etc. And I just installed a new version of the laster Java to use with it, but still, nothing. I even tried replacing the libtray.so with one I stole from somewhere else, but still nothing.
Is there anyone else with this problem?
Thanks,
Sam.
I have the same problem here.
System information: (Running Ubuntu 7.04 - x86)
uname -a
Linux 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
/usr/bin/java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
Running under the default Gnome desktop.
Just tried 2.5.5 and the tray icon is broken just like in 2.5.4. Dropped back to 2.53. and it''s working just fine again. (Well, with the updated jdic anyway)
No, there is not jniwrapper.jar packaged with the Linux version. I tried copying it from the windows version, but this did not work....
Is there any solution or anywhere we can download this file from please?
Heyyyy, ok, I download a copy of jniwrapper.jar from the SVN.
Still no tray icon, you did mean to put it in the plugins directory, right?
Anyways, hope you can see some more insight into this...
Thanks,
Sam.
Edit:
Directory listing of Spark directory if this helps...
ls -R Desktop/Spark :
Desktop/Spark:
bin documentation lib logs plugins resources Spark Spark~ starter xtra
Desktop/Spark/bin:
Desktop/Spark/documentation:
builder.jar images README.html &n bsp; style.css
changelog.html LICENSE.html sparkplug_dev_guide.html
Desktop/Spark/documentation/images:
banner-spark.gif chat-room.png login-dialog.png
banner-spring.gif contact-list.png
Desktop/Spark/lib:
activation.jar linux startup.jar &n bsp; xpp.jar
asterisk-im-client.jar smack.jar swingx.jar &nb sp; xstream.jar
base.jar   ; smackx-debug.jar syntheticaBlueMoon.jar
dom4j.jar &nbs p; smackx.jar synthetica.jar
i4jruntime.jar spark.jar systeminfo.jar
Desktop/Spark/lib/linux:
jdic.jar libmozembed-linux-gtk1.2.so mozembed-linux-gtk1.2
jmf.jar libmozembed-linux-gtk2.so
libjdic.so libtray.so
Desktop/Spark/logs:
error.log
Desktop/Spark/plugins:
fastpath.jar jingle.jar sparkphone.jar
idlelinux.jar jniwrapper.jar spelling-plugin.jar
Desktop/Spark/resources:
Info.plist jniwrap.dll jniwrap.lic sounds startup.sh systeminfo.dll
Desktop/Spark/resources/sounds:
bell.wav chat_request.wav incoming.wav outgoing.wav presence_changed.wav
Desktop/Spark/xtra:
emoticons
Desktop/Spark/xtra/emoticons:
Default.adiumemoticonset.zip POPO.adiumemoticonset.zip
GTalk.AdiumEmoticonset.zip sparkEmoticonSet.zip
Hi Guys,
So attached you will find the linuxplugin.jar. Download and place inside the plugins dir of your spark installation. Also, make sure you have JDK 1.6 running with it.
Cheers,
Derek
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(R) Pentium(R) 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
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
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.
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
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.
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.
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.
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(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) 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
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.<init>(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.<init>(Unknown Source)
at java.awt.TrayIcon.<init>(Unknown Source)
at org.jivesoftware.spark.plugins.LinuxSystemTray.<init>(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)
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.<init>(TrayIcon.java:105)
at java.awt.TrayIcon.<init>(TrayIcon.java:129)
at org.jivesoftware.spark.plugins.LinuxSystemTray.<init>(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).