JDK 7/JavaFX 2 application on Mac OSX El Capitan

前端 未结 3 376
野趣味
野趣味 2021-01-18 02:47

I\'ve just upgraded to El Capitan and I\'m running into problems starting a custom JavaFX2 application running under JDK1.7.0u79 (the latest available from Oracle).

相关标签:
3条回答
  • 2021-01-18 03:12

    I had the same problem. I changed the Text to a Label. I'm not sure it's possible in your case.

    0 讨论(0)
  • 2021-01-18 03:14

    After more than a week with that in an extensive enterprise application, I haven't noticed any problems in the UI.

    For the lack of a better solution, I'm accepting my update above as answer. Maybe it helps someone...

    I've been able to get the app running again by adding this to the start of my main method.

        try {
            Class<?> macFontFinderClass = Class.forName("com.sun.t2k.MacFontFinder");
            Field psNameToPathMap = macFontFinderClass.getDeclaredField("psNameToPathMap");
            psNameToPathMap.setAccessible(true);
            psNameToPathMap.set(null, new HashMap<String, String>());
        } catch (Exception e) {
            // ignore
        }
    
    0 讨论(0)
  • 2021-01-18 03:18

    This isn't a direct answer, however I thought it important to pass on that this bug has been identified and fixed in an upcoming Java release. See https://bugs.openjdk.java.net/browse/JDK-8143907

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