Skip to content
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

Does jcifs-ng-2.1.10 support jdk21? #360

Closed
kaiyang23 opened this issue Sep 5, 2024 · 4 comments
Closed

Does jcifs-ng-2.1.10 support jdk21? #360

kaiyang23 opened this issue Sep 5, 2024 · 4 comments

Comments

@kaiyang23
Copy link

Does jcifs-ng-2.1.10 support jdk21?

@mbechler
Copy link
Contributor

I don't believe there should be anything major preventing use with jdk21. Have you tried?

@kaiyang23
Copy link
Author

I tried, it has error when I use jdk21 to compile source code,
The compile command is: mvn clean package -file pom.xml -Dmaven.wagon.http.ssl.insecure=true
image

@mbechler
Copy link
Contributor

mbechler commented Oct 1, 2024

This is due to the new JDK no longer supporting backward compatibility levels down to 7 (which the official jcifs-ng binaries still support). If you want to build jcifs-ng yourself and use JDK 21 for that, I you just be able to raise java.sourceVersion and java.targetVersion in pom.xml to 1.8.

@kaiyang23
Copy link
Author

It works , thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants