当前位置: 首页 > 知识库问答 >
问题:

使用GraalVM native-image-maven-plugin构建本机映像时出错

顾曾笑
2023-03-14

我正在使用GraalVm 21.0.0.2的native-image-maven-plugin为JavaFX应用程序创建一个本机映像。当我尝试在构建成功结束后执行它时,我得到以下错误:

Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.xerces.parsers.ObjectFactory
at org.apache.xerces.parsers.ObjectFactory.class$(Unknown Source) 
at org.apache.xerces.parsers.ObjectFactory.findClassLoader(Unknown Source)
at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)

我很感激你能给我的任何帮助。

暂时还没有答案

 类似资料: