• 2 replies
  • Latest Post - ‏2014-08-15T08:04:31Z by starxf
2 Posts

Pinned topic IBM JVM 1.6 SR14: UnsatisfiedLinkError: fontmanager (Not found in

‏2013-10-07T13:30:12Z |
We upgraded IBM Java on our AIX machine from Java 1.6 SR 9 to Java 1.6 SR14 and now we have following error during start of our applications:
Exception in thread "main" java.lang.UnsatisfiedLinkError: fontmanager (Not found in
        at java.lang.ClassLoader.loadLibraryWithPath(
        at java.lang.ClassLoader.loadLibraryWithClassLoader(
        at java.lang.System.loadLibrary(
        at sun.font.FontManager$
        at sun.font.FontManager.<clinit>(
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(
        at sun.swing.SwingUtilities2.isComplexLayout(
        at javax.swing.text.AbstractDocument.handleInsertString(
        at javax.swing.text.AbstractDocument.insertString(
        at javax.swing.text.rtf.RTFReader$DocumentDestination.deliverText(
        at javax.swing.text.rtf.RTFReader$TextHandlingDestination.handleText(
        at javax.swing.text.rtf.RTFReader.handleText(
        at javax.swing.text.rtf.RTFParser.write(
        at javax.swing.text.rtf.AbstractFilter.readFromReader(
        at Rtf.convert(
        at Rtf.main(

Following code allows to reproduce this problem:

import javax.swing.text.DefaultStyledDocument;
import javax.swing.text.Document;
import javax.swing.text.rtf.RTFEditorKit;
public class Rtf {
        static public String convert(String rtf) throws Exception {
                DefaultStyledDocument styledDoc = new DefaultStyledDocument();
                RTFEditorKit rtfKit = new RTFEditorKit();
                StringReader reader = null;
                reader = new StringReader(rtf);
      , styledDoc, 0);
                Document doc = styledDoc.getDefaultRootElement().getDocument();
                String txt = doc.getText(0, doc.getLength());
                return txt;
        public static void main(String[] args) throws Exception {
                System.getProperties().store(System.out, "Current System props");
                System.out.println("fontmanger LIB: "+ System.mapLibraryName("fontmanager"));
                String rtf="{\\rtf1\\deff0{\\fonttbl{\\f0 Times New Roman;}{\\f1 Courier New;}}{\\colortbl\\red0\\green0\\blue0 ;\\red0\\green0\\blue255 ;}{\\*\\listoverridetable}{\\stylesheet {\\ql\\f1\\fs2
0\\cf0 Normal;}{\\*\\cs1\\f1\\fs20\\cf0 Default Paragraph Font;}{\\*\\cs2\\sbasedon1\\f1\\fs20\\cf0 Line Number;}{\\*\\cs3\\ul\\f1\\fs20\\cf1 Hyperlink;}}\\sectd\\pard\\plain\\ql{\\f1\\fs20\\cf0 draw 2 extra
 6ml lav. label with chart labels\"}\\f1\\fs20\\par\\pard\\plain\\ql{\\f1\\fs20\\cf0 ?When to Transfuse: When Avl}\\f1\\fs20\\par}";
                String txt = Rtf.convert(rtf);
There are no any exceptions if to run Rtf class without any jvm arguments:
java Rtf
But if to run Rtf class with "" jvm argument then there will be exception "Exception in thread "main" java.lang.UnsatisfiedLinkError: fontmanager (Not found in":
java -Djava.awt.headless=true Rtf  
Does anyone know how to fix this problem?
Updated on 2013-10-07T13:31:35Z at 2013-10-07T13:31:35Z by vbez
  • rich833
    1 Post

    Re: IBM JVM 1.6 SR14: UnsatisfiedLinkError: fontmanager (Not found in


    Hello vbez,


    Did you ever get past this?



  • starxf
    3 Posts

    Re: IBM JVM 1.6 SR14: UnsatisfiedLinkError: fontmanager (Not found in


    Hello vbez, 

     try it by following code.

    SAXBuilder builder = new SAXBuilder();
    try {
    new EntityResolver(){
       public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
           return new InputSource(new StringReader(""));   
    Document doc =;