8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gradle Could not find tools.jar. エラー対策

Posted at

環境

  • windows10
  • gradle-6.3
  • jre1.8.0_251

現状

gradle build

を実行すると

Could not find tools.jar.

として, Build が落ちた.

対策

tool.jar を探して手に入れる.

JDKのダウンロード

JDKの中にtools.jar があるらしいので落とす.

「Windows 10 i586 Java Development Kit」から

http://jdk.java.net/java-se-ri/8-MR3

※ 注意
JDK9からはtools.jar は入っていないらしい
https://jpn.nec.com/webotx/download/info/from_JDK8_to_JDK11.pdf

格納する

C:\Program Files (x86)\Java\jre1.8.0_251\lib

のなかに, tools.jar を移動させる.

tools.jar は

java-se-8u41-ri\lib

の中にある.

8
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?