Skip to content

After an automatic MacOS update (15.3) java stopped working inside Ubuntu 24.04 arm64 #7003

Answered by krullshards
jvalrog asked this question in Linux
Discussion options

You must be logged in to vote

That seems like the upstream OpenJDK 21 issue that affects Apple Silicon Macs with MacOS 15.2+

This has been fixed in a new minor release of OpenJDK and was picked up by Amazon Corretto as well. However, tools that embed their own version of the JDK (like IntelliJ) are still having problems.

https://bugs.openjdk.org/browse/JDK-8345296

Recommended workaround is to set an environment variable:

JAVA_TOOL_OPTIONS="-XX:UseSVE=0"

I set up a little script to launch my intellij but you can just use it to launch one from the terminal and then follow the instructions below to switch the default java run time for the IDE. Remember to switch it back to default once Jetbrains releases a new on that in…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bidon51
Comment options

Answer selected by jvalrog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
3 participants