-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[GR-64746] [Native Image] Dependencies from GraalVM collide with svm-wasm-guava.jar when building to wasm #11112
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
Comments
reproducer |
@fniephaus may I ask you to take a look please? |
Sure, @treblereel. It seems we've added Guava as a dependency recently (see here), but forgot to shade it. @patrick96 Could you please make sure that all dependencies of the web-image suite are properly shaded? Thanks! |
Thank you @fniephaus for such a quick response! I still haven’t been able to get JS.Export to work (I tried the example from JSObject), but that’s beyond the scope of this issue. |
Please file another ticket for |
We're tracking this internally as GR-64746 |
@patrick96 thank you for work you do, do you have any time estimates regarding this bug? Thanks. |
The goal is to get the fix for this merged before June |
Describe the Issue
SDK:
25.ea.20-graal
OS X: macOS
In my Maven project I have a dependency on
org.kie:kie-ci:jar:10.0.0:compile
, which in turn transitively depends oncom.google.guava:guava:jar:32.0.1-jre:compile
.During the build I see many warnings like:
However, at runtime I get:
Could it be that the Guava from my transitive dependency and the Guava bundled in
svm-wasm-guava.jar
are incompatible?I tried excluding Guava in my
native-maven-plugin
configuration:—but it didn’t help.
Thank you for your assistance.
Using the latest version of GraalVM can resolve many issues.
GraalVM Version
java version "25" 2025-09-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 25-dev+20.1 (build 25+20-LTS-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 25-dev+20.1 (build 25+20-LTS-jvmci-b01, mixed mode, sharing)
Operating System and Version
osx 15.3.1 (24D70)
Troubleshooting Confirmation
Run Command
I use maven:
Expected Behavior
no exception during the run
Actual Behavior
Exception in thread "main" java.lang.NoClassDefFoundError: com.google.common.collect.ImmutableSet
Steps to Reproduce
Additional Context
No response
Run-Time Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered: