-
Notifications
You must be signed in to change notification settings - Fork 218
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
jLine 3.25 and org.fusesource.jansi.internal.NativeImageFeature class not found on the classpath #923
Comments
The problem comes from https://github.com/jline/jline3/tree/3a9ff8c75eaba0e1b6cebb4cf165d3a1cabf15bd/jansi-core/src/main/resources/META-INF/native-image/jansi which contains files referencing bad classes. They come from jansi but the references have not been changed when the package has been renamed. If you depend on individual jars rather than the |
Thanks for the response. Actually my jLine-related dependencies looks like this: <dependency>
<groupId>org.jline</groupId>
<artifactId>jline</artifactId>
<version>3.25.0</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
<version>2.4.1</version>
</dependency> I guess as a workaround I need to give up the |
Yes
It's a bug and will be fixed in 3.25.1 in January. |
@vaclavsvejcar do you want to have a look at #931 and see if that works for you ? The graal demo from JLine seems to work well with this PR, but I may have missed some things. |
Hi, I'll try as soon as I'll have time and let you know, thanks a lot for fixing this 👍 |
Sorry, haven't had much time recently to try out. But now with jLine 3.25.1 I'm getting quite different error and I'm not longer sure if it could be related to changes you made or if it could be some GraalVM native image bug:
Do you have any clue? I'll try to check your GraalVM demo to check possible differences with my project. |
Hi,
I'm using jLine in my Quarkus project that is built to native image using GraalVM and 3.24.1 worked without issue, however, after upgrading to 3.25.0, I'm getting this error during native image build:
Do you have any idea what could be the issue? Could it be somehow linked to merging jansi into jLine?
These are the build flags I already had to have set with 3.24.1 in order to build the native image without errors:
Thank you in advance.
The text was updated successfully, but these errors were encountered: