-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated GraalVM reflection configuration can exclude Jansi Console #645
Comments
The error occurs because the jansi jar is missing from the classpath. Adding it to the classpath when generating the GraalVM native image is another way to resolve this error. I understand that this is not strictly necessary because GraalVM does not yet support native images for Windows, so it is probably okay to exclude the Do you think you will be able to provide a pull request for this? |
Pushed to master. |
Reopening since Graal GA was released in the last few days with native-image capabilities for Windows. I will add a command line flag for the |
Actually, I found a better way to do this. picocli can now detect whether Jansi was installed without reflecting on any Jansi classes.
|
When generating the reflection configuration by running the generateGraalReflectionConfig gradle task, the AnsiConsole class is picked up and included in the output.
Giving this error when attempting to generate a nativeImage
Manually removing the AnsiConsole block from the reflection configuration allows native image to build successfully.
Similar to issue #630
The text was updated successfully, but these errors were encountered: