Intellij JAVA_HOME variable

后端 未结 5 1508
南旧
南旧 2021-01-31 07:00

I started using Gradle and Intellij but I am having problems to configure Gradle\'s JVM. When I start a new Gradle project I am not allowed to define JVM as my JAVA_HOME variabl

5条回答
  •  生来不讨喜
    2021-01-31 07:53

    In my case I needed a lower JRE, so I had to tell IntelliJ to use a different one in "Platform Settings"

    • Platform Settings > SDKs ( +; )
    • Click the + button to add a new SDK (or rename and load an existing one)
    • Choose the /Contents/Home directory from the appropriate SDK
      (i.e. /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home)

提交回复
热议问题