How do I tell Gradle to use specific JDK version?

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

    There is one more option to follow. In your gradle tasks available in Eclipse, you can set your desired jdk path. (I know this is a while since the question was posted. This answer can help someone.)

    Right click on the deploy or any other task and select "Open Gradle Run Configuration..."

    Then navigate to "Java Home" and paste your desired java path.

    Please note that, bin will be added by the gradle task itself. So don't add the "bin" to the path.

提交回复
热议问题