Java binary compatibility issue: sun.font.FontManager class became interface

前端 未结 3 1364
我寻月下人不归
我寻月下人不归 2021-01-02 18:35

I am using the Lobo - Java Web Browser library, and it gives me an exception which after some research I determined could be due to the library having been complied against

相关标签:
3条回答
  • 2021-01-02 18:52

    The lobobrowser project is dead, but some nice user comittet a patch to fix your problem:

    http://sourceforge.net/tracker/?func=detail&aid=2991043&group_id=139023&atid=742262

    Since a dead project doesn't release any patched jars, I did it ;-) Find a cobra-gp-0.98.5.jar with the above patch applied at : http://www.wikisquare.de/public/cobra-gp-0.98.5.jar

    0 讨论(0)
  • 2021-01-02 18:52

    javax.swing.text.StyleContext.getDefaultStyleContext.getFont might work for you, across JDK releases.

    See further http://elliotth.blogspot.com.au/2007/04/far-east-asian-fonts-with-java-7-on.html

    0 讨论(0)
  • 2021-01-02 19:09

    I think 'sun.font.FontManager'was removed with Java7, so if you must use it (I'd recommend against it and look for another package instead) you could try running it with java6.

    0 讨论(0)
提交回复
热议问题