question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find tools.jar

See original GitHub issue

Hi,

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:closed
  • Created 8 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
obladorcommented, Feb 22, 2016

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.

0reactions
sreejithsncommented, Sep 25, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found