-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Error: LinkageError occurred while loading main class com.github.bazelbuild.rules_jvm_external.jar.AddJarManifestEntry #895
Comments
We are having the same problem while trying to upgrade JDK to 21 for Bazel: https://buildkite.com/bazel/google-bazel-presubmit/builds/77440#018dd10c-5240-4174-aeee-be81150ead6c /cc @zhengwei143 @shs96c @jin |
I asssume this is a matter of bumping up the versions in https://github.com/bazelbuild/rules_jvm_external/blame/master/.bazelrc? Can we though, I assume we might run into some incompatibility issues with other projects? |
I managed to build bazel with the failing patch in #895 (comment) with this local override patch (#1058). PTAL The root cause comes from |
re: #895 (comment) We should do that to pin RJE's own build, but it wouldn't fix this issue, since the upstream project's .bazelrc (in this case from the perspective of bazel -> RJE) isn't read. |
Thanks for #1058! I guess we will have to wait for a release of |
I think you can use https://bazel.build/rules/lib/globals/module#git_override as a temporary measure without a full BCR push. I see it also has the |
Great, thank you for the speedy work! |
I'm trying to build a project with Bazel@HEAD that uses
rules_jvm_external
, and seeingjava.lang.UnsupportedClassVersionError
.I am able to reproduce this issue on this example project:
Environment:
The text was updated successfully, but these errors were encountered: