How do I tell Gradle to use specific JDK version?

前端 未结 17 2490
时光取名叫无心
时光取名叫无心 2020-11-22 12:12

I can\'t figure out to get this working.

Scenario:

  • I have an application built with gradle
  • The application uses JavaFX

What I w

17条回答
  •  天命终不由人
    2020-11-22 12:20

    As seen in Gradle (Eclipse plugin)

    http://www.gradle.org/get-started

    Gradle uses whichever JDK it finds in your path (to check, use java -version). Alternatively, you can set the JAVA_HOME environment variable to point to the install directory of the desired JDK.


    If you are using this Eclipse plugin or Enide Studio 2014, alternative JAVA_HOME to use (set in Preferences) will be in version 0.15, see http://www.nodeclipse.org/history

提交回复
热议问题