No Tray Icon in Linux

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™ SE Runtime Environment (build 1.6.0-b105)

Java HotSpot™ 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)

Hey,

Is the error of “ls: cannot access /home/sam/Desktop/Spark/lib/windows: No such file or directory” any use?

Is Spark trying to look for the windows libraries instead of the Linux ones? Or does it check for the windows ones first?

Thanks,

Sam.

Hmmm. This is very strange. Can you check your plugins directory and make sure the jniwrapper.jar is there. That contains the code for the tray.

Thanks,

Derek

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 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 xpp.jar

asterisk-im-client.jar smack.jar swingx.jar xstream.jar

base.jar smackx-debug.jar syntheticaBlueMoon.jar

dom4j.jar 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

No tray icon in WinXP either after updating to 2.5.5.

I checked to see if jniwrapper.jar existed in WinXP (C:\Program Files\Spark\plugins\jniwrapper\lib\dist) - it doesn’'t, but jniwrap.jar does. Which is the correct file that should be installed?

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.

Which permissions should be changed? My user role on this computer is Administrator with full control. I changed permissions on the Spark folder to Full Control, and added Everyone with Full Control. Still no icon in the systray. Is there somewhere else that permissions should be checked?

What I described was for Win32 XP SP2.

I’'ve tried v2.5.5 in my Ubuntu 7.04 box and was not successful in reproducing what I did on my Win32 XP box.

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
linuxplugin.jar (8602 Bytes)

Can you fire me off the updated JDIC file you are talking about?

Thanks,

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® 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.