Skip to content

Instantly share code, notes, and snippets.

@dotspencer
Last active April 22, 2020 20:38
Show Gist options
  • Save dotspencer/d4b369ace1d4b962875a91644a957a2f to your computer and use it in GitHub Desktop.
Save dotspencer/d4b369ace1d4b962875a91644a957a2f to your computer and use it in GitHub Desktop.
Java MacOS errors/tips

Error:

Gradle: Could not determine java version from '11.0.2'

List Java versions installed

/usr/libexec/java_home -V

Set Java 8 (ie 1.8) as default

export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)

https://stackoverflow.com/a/46517346/3498950

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment