Fixing Security Manager issue With java_test_suite #376
vibbix
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you run into
A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.when usingjava_test_suiteWith JUnit 5 & Java 21+, update yourBUILDfile accordingly:Took me a while to track down, so wanted to make note of it.
It seems that adding
test --jvmopt=-Djava.security.manager=to.bazelrcalone doesn't override thejvmflagsbeing set byjava_test_suite.Beta Was this translation helpful? Give feedback.
All reactions