Skip to main content

Suse Linux 9.2 and Tray errors

1 reply [Last post]
gmortime
Offline
Joined: 2003-07-01

Hi all,

I'm trying to get Tray running under SuSe Linux 9.2. However I keep getting the following error:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x40627FE3
Function=JNU_GetEnv+0x17
Library=/home/user/Borland/JBuilder2005/jdk1.4/jre/lib/i386/libjava.so

Current Java thread:
at org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.locateSystemTray(Native Method)
at org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.(GnomeSystemTrayService.java:77)
at org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(ServiceManagerStub.java:55)
at org.jdesktop.jdic.tray.internal.ServiceManager.getService(ServiceManager.java:71)
at org.jdesktop.jdic.tray.SystemTray.(SystemTray.java:39)
at IconDemo.(IconDemo.java:29)
at IconDemo.main(IconDemo.java:172)

Obviously this is only happening when i drop the libtray.so file into the path, removing it the app functions fine. Is it me or is this a bug.

Thanks for any help provided.

Regards
Gary

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
georgez
Offline
Joined: 2003-08-19

Hi Gary,

Seems that you are still using the standalone Tray Icon binary, which
was incorporated into JDIC release 0.8.6:
https://jdic.dev.java.net/servlets/ProjectDocumentList?folderID=1955&exp...

In that release, these is no libtray.so, instead, there is a libjdic.so.

On the other hand, for the problem, seems that you didn't set JAVA_HOME, which is required
using Tray Icon API in release 0.8.6 or before:
https://jdic.dev.java.net/documentation/README.html#Installation

Could you try that out and give me feedback ?

Thanks,
-George.