Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6749932

java.awt.TrayIcon constructor throws UnsatisfiedLinkError for Motif toolkit

XMLWordPrintable

    • generic
    • solaris

      Platform: Solaris
      JDK: 6.0, 6u7, 6u10beta

      If executed with -Dawt.toolkit=sun.awt.motif.MToolkit the following code sample:
      ------
      import java.awt.*;
      import java.awt.image.BufferedImage;

      public class TrayIconFailure {

          public static void main(String[] args) {
              new TrayIcon(new BufferedImage(1,1, BufferedImage.TYPE_INT_RGB));
          }
      }
      ------
      produces:
      Exception in thread "main" java.lang.UnsatisfiedLinkError: java.awt.TrayIcon.initIDs()V
      at java.awt.TrayIcon.initIDs(Native Method)
      at java.awt.TrayIcon.<clinit>(TrayIcon.java:93)
      at TrayIconFailure.main(TrayIconFailure.java:7)

      The following tests fail on RI due to this reason if executed with motif toolkit:

      api/java_awt/TrayIcon/index.html#ActionListeners
      api/java_awt/TrayIcon/index.html#Ctors
      api/java_awt/TrayIcon/index.html#DisplayMessage
      api/java_awt/TrayIcon/index.html#FieldsAccessors
      api/java_awt/TrayIcon/index.html#MouseListeners
      api/java_awt/TrayIcon/index.html#MouseMotionListeners

            alitvinov Anton Litvinov (Inactive)
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: