Could not find tools.jar
See original GitHub issueHi,
I’m currently trying to run an Android project width React Native. However, when I try so, I get this error :
:react-native-vector-icons:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-vector-icons:compileReleaseJavaWithJavac'.
> Could not find tools.jar
But I can’t see where it comes from…
Here’s my java version :
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
Any ideas ?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Gradle does not find tools.jar - Stack Overflow
You need to find where the JDK is, in my case: D:\Program Files\Java\jdk1.8.0_11 , and if you look in the lib directory, you...
Read more >Gradle doesn't run because it can't find tools.jar in JRE
Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_121 contains a valid JDK installation.
Read more >Could not find tools.jar. Please check that C:\Program Files ...
When running the following command: gradlew build check test I get this error: `:versionTxt :compileJava FAILED FAILURE: Build failed with ...
Read more >Could not find tools.jar - DEV Community
Could not find tools.jar · Go to your project, open android folder > gradle.properties file > add below line org.gradle.java.home=/Applications/ ...
Read more >Unable to locate tools.jar - webMethods
I am building a project in Java with the help of online compiler. I have this error: Unable to locate tools.jar. Expected to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You only need to integrate the java parts when you need to use the icons as PNGs and in most use cases you don’t.
Your error
Could not find tools.jar
is most likely not connected to this library but your env setup, try googling it.I had same problem. My java path was wrong.
Previously i was using ‘/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java’
I changed to ‘~/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java’
Now issue is solved for me.