How do I tell Gradle to use specific JDK version?

前端 未结 17 2385
时光取名叫无心
时光取名叫无心 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:32

    If you are executing using gradle wrapper, you can run the command with JDK path like following

    ./gradlew -Dorg.gradle.java.home=/jdk_path_directory

提交回复
热议问题