You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
========================================================================================================================
GraalVM Native Image: Generating 'D:\a\whatsub\whatsub\cli\target\native-image\whatsub-cli' (executable)...
========================================================================================================================
[1/7] Initializing... (0.0s @ 0.10GB)
Fatal error: java.lang.NoClassDefFoundError: pirate/Command
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2673)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:359)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:585)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)
at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:615)
Caused by: java.lang.ClassNotFoundException: pirate.Command
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 7 more
Error: Image build request failed with exit status 1
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 1
at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1678)
at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1389)
at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1350)
at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1337)
[error] native-image command failed with exit code '1'
[error] (cli / nativeImage) native-image command failed with exit code '1'
[error] Total time: 30 s, completed Jun 15, 2022, 12:37:27 PM
I get no error and build is successfully done if I use 0.3.0.
@eed3si9n Thanks Eugene. Sorry I found your answer only today.
Unfortunately, downgrading to windows-2019 doesn't solve my issue.
With these changes, the result is still the same.
Describe the bug
nativeImage
on Windows fails insbt-native-image
0.3.1
and0.3.2
(No issue in0.3.0
).I'm getting the following error when running
nativeImage
on Windows platform in GitHub Actions.https://github.com/Kevin-Lee/whatsub/runs/6899749209?check_suite_focus=true#step:7:304
I get no error and build is successfully done if I use
0.3.0
.To Reproduce Steps to reproduce the behavior:
nativeImage
Expected behavior
Successful build like this one: https://github.com/Kevin-Lee/whatsub/runs/6900296176?check_suite_focus=true#step:7:306
It's the build result when
sbt-native-image
0.3.0
is used.Screenshots
Failed build when
0.3.1
or0.3.2
is used. (This screenshot was taken from the build with0.3.2
).Installation:
windows-latest
from GitHub ActionsAdditional Info
The command executed by GitHub Actions:
The text was updated successfully, but these errors were encountered: