-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[GR-39473] java.lang.NoClassDefFoundError: com.sun.net.httpserver.HttpServer in runtime on JDK 17 #4671
Comments
Thanks for reporting a regression and providing a small reproducer, @tonivade! We'll look into a fix. As a workaround, the native executable works when you build with |
Thanks for the workaround |
See [1]. [1]: oracle/graal#4671 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
See [1]. [1]: oracle/graal#4671 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
@fniephaus 's workaround expresses in Gradle (kts):
|
This will be fixed in the 22.3 release. You can test it now using a dev build. |
I can confirm it's working with the latest dev build. Thanks a lot! |
Describe the issue
Using com.sun.net.httpserver.HttpServer in native-image (JDK 17) throws NoClassDefFoundError with latest 22.2 dev version.
Version 22.1 it works as expected.
Steps to reproduce the issue
1.
Describe GraalVM and your environment:
openjdk version "17.0.4" 2022-07-19
OpenJDK Runtime Environment GraalVM CE 22.2.0-dev (build 17.0.4+7-jvmci-22.2-b04)
OpenJDK 64-Bit Server VM GraalVM CE 22.2.0-dev (build 17.0.4+7-jvmci-22.2-b04, mixed mode, sharing)
More details
The text was updated successfully, but these errors were encountered: