哈,啦啦 2023-11-28 16:46 采纳率: 75%
浏览 21
已结题

graalvm报错,不清楚原因

我的执行语句是这么写的native-image -cp boot3-15-aot-common-1.0-SNAPSHOT.jar org.mypro.MainApplication -o Ha
但是执行了就报以下的错

Fatal error: com.oracle.svm.core.util.VMError$HostedError: The classpath of com.oracle.svm.hosted.NativeImageGeneratorRunner must not contain ".". This can happen implicitly if the builder runs exclusively on the --module-path but specifies the com.oracle.svm.hosted.NativeImageGeneratorRunner main class without --module.

        at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:68)

        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageClassLoaderSupport.<init>(NativeImageClassLoaderSupport.java:133)

        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.installNativeImageClassLoader(NativeImageGeneratorRunner.java:180)

        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:123)

Error: Image build request failed with exit status 1

  • 写回答

1条回答 默认 最新

  • 哈,啦啦 2023-11-28 17:29
    关注

    已经解决,这是在环境变量中存在'.',建议遇到这个问题的网友把每个环境变量都找找

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 12月6日
  • 已采纳回答 11月28日
  • 修改了问题 11月28日
  • 创建了问题 11月28日