Skip to main content

Win XP - jdic-0.9.5 system tray exception: UnsatisfiedLinkError

3 replies [Last post]
jamonroe
Offline
Joined: 2008-12-04
Points: 0

I'm trying to use jdic-0.9.5 to implement system tray functionality within my swing application, and I can't get passed the following exception:

Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: org.jdesktop.jdic.tray.internal.impl.
DisplayThread.initTray()V
at org.jdesktop.jdic.tray.internal.impl.DisplayThread.initTray(Native Method)
at org.jdesktop.jdic.tray.internal.impl.DisplayThread.run(WinSystemTrayService.java:86)

I'm using jdk1.6.0_10 on Win XP. I have the jdic.jar and jdic_stub_windows.jar in my lib directory, and the two dll's (jdic.dll & tray.dll) under lib\windows\x86.

The error message appears that the dll's can't be found, but if I remove them from the lib\windows\x86, I get a different message saying that it can't find the jdic.dll. So it seems that it indeed it is finding them. I've tried setting the windows path to include the dll directory, along with the "-Djava.library.path=" parameter specifying the dll directory, but all attempts result in the same exception.

What am I missing? Any help is appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Alex Ng'ang'a

System tray functionality is now available in the jdk6. You are better
off using that one. See the docs for the same.

On 12/4/08, jdic@javadesktop.org wrote:
> I'm trying to use jdic-0.9.5 to implement system tray functionality within
> my swing application, and I can't get passed the following exception:
>
> Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError:
> org.jdesktop.jdic.tray.internal.impl.
> DisplayThread.initTray()V
> at
> org.jdesktop.jdic.tray.internal.impl.DisplayThread.initTray(Native Method)
> at
> org.jdesktop.jdic.tray.internal.impl.DisplayThread.run(WinSystemTrayService.java:86)
>
> I'm using jdk1.6.0_10 on Win XP. I have the jdic.jar and
> jdic_stub_windows.jar in my lib directory, and the two dll's (jdic.dll &
> tray.dll) under lib\windows\x86.
>
> The error message appears that the dll's can't be found, but if I remove
> them from the lib\windows\x86, I get a different message saying that it
> can't find the jdic.dll. So it seems that it indeed it is finding them. I've
> tried setting the windows path to include the dll directory, along with the
> "-Djava.library.path=" parameter specifying the dll directory, but all
> attempts result in the same exception.
>
> What am I missing? Any help is appreciated.
> [Message sent by forum member 'jamonroe' (jamonroe)]
>
> http://forums.java.net/jive/thread.jspa?messageID=320159
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
> For additional commands, e-mail: jdic-help@jdic.dev.java.net
>
>

--
Sent from Gmail for mobile | mobile.google.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
For additional commands, e-mail: jdic-help@jdic.dev.java.net

jamonroe
Offline
Joined: 2008-12-04
Points: 0

Thanks for the suggestion, but that is why I'm trying the JDIC route. We're finding the JDK6 system tray does not work with some versions of Ubuntu or Kubuntu (or possibly other desktop window managers?) .

I was trying JDIC to see if was any better at dealing with the system tray accross platforms.

oleastre
Offline
Joined: 2008-12-10
Points: 0

As if me you are stuck with JDK 1.5 compatibility, it is annoying to get this error...

I just submitted a patch to correct this problem; see issue 533.

https://jdic.dev.java.net/issues/show_bug.cgi?id=533