JDK 7/JavaFX 2 application on Mac OSX El Capitan

前端 未结 3 399
野趣味
野趣味 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条回答
  •  Happy的楠姐
    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());
        } catch (Exception e) {
            // ignore
        }
    

提交回复
热议问题