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

demo apps crash with "java.lang.UnsatisfiedLinkError: no freetype in java.library.path" exception

XMLWordPrintable

      build used: jdk7 b22 pit build from swing ws /net/prt-archiver.sfbay/data/jprt/archive/2007/10/2007-10-04-142610.ml199754.ws-int-jdk7/bundles
      platform: WinXP
      demo apps tested: NotePad, Font2DTest, SwingSet2

      Exceptions are thrown:

      Y:\i18n1\i18n-dtf\nightly\jdk7\windows-i586\demo\jfc\Font2DTest>..\..\..\bin\java.exe -version
      java version "1.7.0-2007-10-04-142610.ml199754.ws-int-jdk7"
      Java(TM) SE Runtime Environment (build 1.7.0-2007-10-04-142610.ml199754.ws-int-jdk7-Administrator_04_oct_2007_07_44-b00)
      Java HotSpot(TM) Client VM (build 11.0-b07, mixed mode)

      Y:\i18n1\i18n-dtf\nightly\jdk7\windows-i586\demo\jfc\Font2DTest>..\..\..\bin\java.exe -jar Font2DTest.jar
      Exception in thread "main" java.lang.UnsatisfiedLinkError: no freetype in java.library.path
             at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1700)
             at java.lang.Runtime.loadLibrary0(Runtime.java:841)
             at java.lang.System.loadLibrary(System.java:1067)
             at sun.font.FontManagerNativeLibrary$1.run(FontManagerNativeLibrary.java:59)
             at java.security.AccessController.doPrivileged(Native Method)
             at sun.font.FontManagerNativeLibrary.<clinit>(FontManagerNativeLibrary.java:32)
             at sun.font.FontManager$1.run(FontManager.java:233)
             at java.security.AccessController.doPrivileged(Native Method)
             at sun.font.FontManager.<clinit>(FontManager.java:230)
             at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:179)
             at java.security.AccessController.doPrivileged(Native Method)
             at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:163)
             at sun.awt.Win32GraphicsEnvironment.<init>(Win32GraphicsEnvironment.java:91)
             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
             at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
             at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
             at java.lang.reflect.Constructor.newInstance(Constructor.java:539)
             at java.lang.Class.newInstance0(Class.java:373)
             at java.lang.Class.newInstance(Class.java:326)
             at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:83)
             at javax.swing.RepaintManager.<clinit>(RepaintManager.java:200)
             at javax.swing.UIManager.initialize(UIManager.java:1438)
             at javax.swing.UIManager.maybeInitialize(UIManager.java:1410)
             at javax.swing.UIManager.getDefaults(UIManager.java:660)
             at javax.swing.UIManager.put(UIManager.java:989)
             at Font2DTest.main(Font2DTest.java:1023)

      When I made a copy to local system, it works fine.
      Closing the bug...

            Unassigned Unassigned
            mtiensunw Minchi Tien (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: