gluonhq / client-samples

Client samples to run with Gluon Client plugins for Maven and Gradle
114 stars 23 forks source link

Run error in Mac os #56

Open xqdd opened 4 years ago

xqdd commented 4 years ago
Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: Could not initialize class com.sun.glass.ui.mac.MacAccessible
        at com.oracle.svm.core.hub.ClassInitializationInfo.initialize(ClassInitializationInfo.java:214)
        at java.lang.Class.ensureInitialized(DynamicHub.java:496)
        at com.sun.glass.ui.mac.MacApplication.createAccessible(MacApplication.java:259)
        at javafx.scene.Scene.getAccessible(Scene.java:6440)
        at javafx.scene.Scene$ScenePeerListener.getSceneAccessible(Scene.java:2869)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.getSceneAccessible(GlassViewEventHandler.java:1376)
        at com.sun.glass.ui.View.getAccessible(View.java:1117)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Lcom_sun_glass_ui_View_2_0002egetAccessible_00028_00029J(JNIJavaCallWrappers.java:0)

I had tried

<nativeImageArgs>
    <list>
        --initialize-at-run-time=com.sun.glass.ui.mac.MacAccessible
    </list>
</nativeImageArgs>

not working