3/7/2023 0 Comments Intellij jdk mac os xSet the environment variable to occur at application launch so that IntelliJ sees is using OS X's launchctl program: launchctl setenv JAVA_HOME $(/usr/libexec/java_home) export JAVA_HOME=$(/usr/libexec/java_home)Įxport GRADLE_HOME=/usr/local/opt/gradle/libexecĤ. Don't set the GRADLE_HOME if you didn't install the standalone gradle. These values will work regardless of which version of java or gradle you have installed. IntelliJ ships with its own version of Gradle, so this is really optional, and is helpful if you want to use Gradle outside of IntelliJ. Here it is broken down from the very beginning of a clean install: 1. Here's the summary: install the latest Java JDK from Oracle, add the java_home value to $JAVA_HOME and set that value to $IDEA_HOME (IntelliJ's variable for defining which JDK to use), install gradle (optional) using homebrew, then define the project SDK in IntelliJ. Here are the incantations which got it working for me on Mac OS X 10.11.5, both with Java and Gradle on IntelliJ 2016.1 Man I had so much trouble with this as well, and I don't remember having this much trouble before.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |