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

Unsatisfied Link error from JDK B40 onwards

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.4.0
    • client-libs
    • 2d
    • generic
    • solaris_7

      All the tests in java2d/font viz. LineBreakMeasurer and TextMeasurer fail due to unsatisfied link error. The URL of the tests are

      java/jck-dev/workspaces/merlin-beta-cup/tests/api/java_awt/java2d/font/LineBreakMeasurer/ and
      java/jck-dev/workspaces/merlin-beta-cup/tests/api/java_awt/java2d/font/TextBreakMeasurer/


      The respective library files viz. libmawt.so and libfontmanager.so are not available for execution as mentioned under.

      Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/java/jdk1.4/solsparc/jre/lib/sparc/libfontmanager.so: ld.so.1: /usr/local/java/jdk1.4/solsparc/bin/../bin/sparc/native_threads/java: fatal: libmawt.so: open failed: No such file or directory
              at java.lang.ClassLoader$NativeLibrary.load(Native Method)
              at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1390)
              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
              at java.lang.Runtime.loadLibrary0(Runtime.java:773)
              at java.lang.System.loadLibrary(System.java:829)
              at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.text.Bidi.<clinit>(Bidi.java:54)
              at java.awt.font.TextMeasurer.initAll(TextMeasurer.java:174)
              at java.awt.font.TextMeasurer.<init>(TextMeasurer.java:133)
              at java.awt.font.LineBreakMeasurer.<init>(LineBreakMeasurer.java:291)
              at java.awt.font.LineBreakMeasurer.<init>(LineBreakMeasurer.java:259)
              at LineBreak.main(LineBreak.java:12)


      Sample program to generate the error is attached...

      import java.awt.font.LineBreakMeasurer;
      import java.text.AttributedString;
      import java.text.AttributedCharacterIterator;

      public class LineBreak{
        public static void main(String args[]){
             
              String string = "01234567890123456789";
              AttributedCharacterIterator text = (new AttributedString(string)).getIterator();
                     
              try {
               LineBreakMeasurer measurer = new LineBreakMeasurer(text, null);
              
                 }
              catch(NullPointerException exc) {
                System.out.println("Exception: "+exc);
              }
              
          }
         }


            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: