0

试图让我的第一个本地构建工作。

(使用 Windows 10、jdk 17、javafx17、gluon 1.0.9、gluon graalvm (graalvm-svm-windows-gluon-21.2.0-dev.zip))

我能够运行mvn gluonfx:ru​​n (并单击我的测试 UI 中的 1 按钮)

但是,当我运行:mvn gluonfx:ru​​nagent时,我得到:

    [Wed Nov 17 08:10:41 PST 2021][INFO] [SUB] Error: Error parsing reflection configuration in file:/C:/devel/repos/Gluon-SingleViewProject-jdk17/target/classes/META-INF%5cnative-image%5creflect-config.json:
[Wed Nov 17 08:10:41 PST 2021][INFO] [SUB] Unknown attribute 'queryAllDeclaredMethods' (supported attributes: allDeclaredConstructors, allPublicConstructors, allDeclaredMethods, allPublicMethods, allDeclaredFields, allPublicFields, methods, fields) in defintion of class com.gluonapplication.HelloController
[Wed Nov 17 08:10:41 PST 2021][INFO] [SUB] Verify that the configuration matches the schema described in the -H:PrintFlags=+ output for option ReflectionConfigurationResources.
[Wed Nov 17 08:10:41 PST 2021][INFO] [SUB] com.oracle.svm.core.util.UserError$UserException: Error parsing reflection configuration in file:/C:/devel/repos/Gluon-SingleViewProject-jdk17/target/classes/META-INF%5cnative-image%5creflect-config.json:
[Wed Nov 17 08:10:41 PST 2021][INFO] [SUB] Unknown attribute 'queryAllDeclaredMethods' (supported attributes: allDeclaredConstructors, allPublicConstructors, allDeclaredMethods, allPublicMethods, allDeclaredFields, allPublicFields, methods, fields) in defintion of class com.gluonapplication.HelloController
[Wed Nov 17 08:10:41 PST 2021][INFO] [SUB] Verify that the configuration matches the schema described in the -H:PrintFlags=+ output for option ReflectionConfigurationResources.

helloController 仅包含 1 个方法 atm:

public class HelloController {
    public void pressButton(ActionEvent ae){
        System.out.println("hello, source pressed: " + ae.getSource());
    }    
}

非常感谢任何建议/提示......(基于上面的错误......看起来构建过程可能正在为 jdk 17 调用不受支持的方法?)

4

0 回答 0