jdic
  1. jdic
  2. JDIC-533

UnsatisfiedLinkError for DisplayThread.initTray

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      533

      Description

      Trying to use the tray API from JDIC 0.9.5 with a jdk 1.5 on windows leads you
      to an exception:
      java.lang.UnsatisfiedLinkError:
      org.jdesktop.jdic.tray.internal.impl.DisplayThread.initTray()V

      It seems a change in org.jdesktop.jdic.tray.internal.impl.WinSystemTrayService
      replaced a "System.loadLibrary" with a "JdicManager.loadLibrary". Unfortunately
      it also replaced the library name from "tray" to "jdic".

      The "initTray" method is only defined in the tray.dll and not in the jdic.dll.

      So I suppose this is just a small error that occurred when changing the
      loadLibrary call. Here is a small patch that revert this.

      — WinSystemTrayService.java.orig 2008-06-03 16:46:00.000000000 +0200
      +++ WinSystemTrayService.java 2008-12-10 13:00:46.188296800 +0100
      @@ -76,7 +76,7 @@
      private static native void eventLoop();
      static {
      try

      { - JdicManager.loadLibrary("jdic"); + JdicManager.loadLibrary("tray"); }

      catch(PrivilegedActionException e)

      { e.printStackTrace(); }

        Activity

        Hide
        oleastre added a comment -

        Created an attachment (id=313)
        Patch against version 0.9.5

        Show
        oleastre added a comment - Created an attachment (id=313) Patch against version 0.9.5

          People

          • Assignee:
            michael_shan
            Reporter:
            oleastre
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: