[JAVA] gradle Could not find tools.jar. Error countermeasures

environment

Current status

gradle build

When you run

Could not find tools.jar.

As, Build fell.

Countermeasures

Find and get tool.jar.

JDK download

It seems that tools.jar is in the JDK, so drop it.

From "Windows 10 i586 Java Development Kit"

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

※ Caution It seems that tools.jar is not included from JDK9 https://jpn.nec.com/webotx/download/info/from_JDK8_to_JDK11.pdf

Store

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

Move tools.jar inside.

tools.jar

java-se-8u41-ri\lib

Is in.

Recommended Posts

gradle Could not find tools.jar. Error countermeasures
Today's java error: Error: Could not find or load main class
RSpec gives ActiveRecord :: StatementInvalid: Could not find table
java error countermeasures
Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
Many error lines ... Rails server does not start 2. "Autodetect': Could not find a JavaScript runtime."
Error: Main class not found or could not be loaded
ERROR! MySQL server PID file could not be found!
[Error resolution] How to resolve the error "Could not find a JavaScript runtime." After upgrading Catalina!
Could not build module'nanopb'