Skip to main content
All CollectionsKnowledge BaseBitrise infrastructure
Build hangs when running on Big Sur and JDK11 is used
Build hangs when running on Big Sur and JDK11 is used
Updated over a week ago

Issue

Your build hangs (and never completes) at a Step that uses Java (Android Steps, Gradle Runner, SonarQube scanner, and many more) when the following conditions apply:

- You have recently switched to a macOS Big Sur stack (for example, Xcode 12.5) from a previous one.

- You install JDK11 on the build VM in your Workflow with the provided Script Step.

Possible solutions

Please check the script that installs JDK 11. Previously, we recommended setting the global jenv version on the virtual machine to the system version. On Big Sur stacks, it should be explicitly set to Java 11. The script should look like this:

jenv global 11
export JAVA_HOME=\"$(jenv prefix)\"
envman add --key JAVA_HOME --value \"$(jenv prefix)\"
Did this answer your question?