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

PIT: UnsatisfiedLinkError thrown when invoking JTextArea constructor

XMLWordPrintable

      Following Error is thrown when invoking
      JTextArea jta = new JTextArea();
      Exception in thread "main" java.lang.UnsatisfiedLinkError: no JavaAccessBridge i
      n java.library.path
              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
              at java.lang.Runtime.loadLibrary0(Runtime.java:788)
              at java.lang.System.loadLibrary(System.java:862)
              at com.sun.java.accessibility.AccessBridge$1.run(AccessBridge.java:703)
              at java.security.AccessController.doPrivileged(Native Method)
              at com.sun.java.accessibility.AccessBridge.<clinit>(AccessBridge.java:70
      0)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
      orAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
              at java.lang.Class.newInstance0(Class.java:308)
              at java.lang.Class.newInstance(Class.java:261)
              at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:695)
              at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:795)
              at javax.swing.plaf.basic.BasicLookAndFeel$PopupInvocationHelper.run(Bas
      icLookAndFeel.java:1866)
              at javax.swing.plaf.basic.BasicLookAndFeel$2.run(BasicLookAndFeel.java:1
      681)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.swing.plaf.basic.BasicLookAndFeel.doPrivileged(BasicLookAndFeel
      .java:1678)
              at javax.swing.plaf.basic.BasicLookAndFeel.access$300(BasicLookAndFeel.j
      ava:69)
              at javax.swing.plaf.basic.BasicLookAndFeel$PopupInvocationHelper.<init>(
      BasicLookAndFeel.java:1862)
              at javax.swing.plaf.basic.BasicLookAndFeel.initialize(BasicLookAndFeel.j
      ava:98)
              at javax.swing.UIManager.setLookAndFeel(UIManager.java:395)
              at javax.swing.UIManager.setLookAndFeel(UIManager.java:426)
              at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1087)
              at javax.swing.UIManager.initialize(UIManager.java:1183)
              at javax.swing.UIManager.maybeInitialize(UIManager.java:1166)
              at javax.swing.UIManager.getUI(UIManager.java:777)
              at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:297)
              at javax.swing.text.JTextComponent.<init>(JTextComponent.java:271)
              at javax.swing.JTextArea.<init>(JTextArea.java:186)
              at javax.swing.JTextArea.<init>(JTextArea.java:132)
              at TestJTA.main(TestJTA.java:7)

      This error is thrown in the Windows build of the 10th Sept 2003 PIT request.
      The java version is
       
      java version "1.5.0-internal"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-internal-monsanto_
      06_aug_2003_08_42)
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

      Steps to Reproduce:
      -------------------
      1) Compile and run the attached code on the 10th Sept PIT request(Windows build)
      2) You will see the error


            lmonsantsunw Lynn Monsanto (Inactive)
            mjoshisunw Mayank Joshi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: