Skip to main content

java.lang.UnsatisfiedLinkError: createAppletWindow

2 replies [Last post]
walterc
Offline
Joined: 2003-06-11
Points: 0

using the tray api, if you create TrayIcon before getting the default SystemTray, java.lang.UnsatisfiedLinkError will be thrown. looks like a bug to me ;-)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
til132
Offline
Joined: 2008-08-26
Points: 0

I've the same behavior on my machine, too. This is very bad, because the error message does not match to the actual problem.

[b]Doesn't work:[/b]
TrayIcon ti = new TrayIcon(icon, "regain", menu);
ti. ...

SystemTray tray = SystemTray.getDefaultSystemTray();
tray.addTrayIcon(ti);

[b]Works:[/b]
SystemTray tray = SystemTray.getDefaultSystemTray();

TrayIcon ti = new TrayIcon(icon, "regain", menu);
ti. ...

tray.addTrayIcon(ti);

armin_chen
Offline
Joined: 2004-09-29
Points: 0

Hi til132 and walterc

This bug has been fixed.
It's because GnomeTrayAppletService do not load the tray library.

Thanks.
Armin.