Questions tagged [tools.jar]
82 questions
7
votes
6 answers
Java compiler at Runtime
In my current project, I need to compile java code at runtime (in the background to process input from the user). This works fine with tools.jar in the classpath. However, not all users of my program have JDK installed on their system. Some of them…

Dipmedeep
- 135
- 5
7
votes
2 answers
Is it safe to distribute tools.jar along with a Java application bundle?
Although tools.jar is not a component in JRE, but it comes with all major implementations of JDK such as Oracle JDK and OpenJDK.
Not being standard component of JRE means that when I distribute a Java application which uses tools.jar, I have to…
user972946
6
votes
1 answer
Cannot resolve com.sun:tools:0 in Maven Project?
I've been working with test automation a lot lately.
Im now familiarized with several tools, frameworks, dependencies, etc. like Selenium, JUNits, TestNG that helps me manage my daily work as a QA Engineer.
I frequently use Selenium and TestNG to…

Nicolas Sanchez
- 131
- 1
- 4
6
votes
2 answers
tools.jar not found OS X
I have scoured stack overflow and have not found a solution to my problem. This is a bit long winded, but I have not found a solution in the past week, searching non-stop.
Problem: tools.jar not found when trying to compile Android source code, and…

Singledigit
- 124
- 1
- 6
4
votes
2 answers
resolving tools.jar in ivy
i have a project that uses ivy to manage its dependencies. i'm implementing a feature to the project that requires me to include tools.jar. however, because tools.jar is platform dependent, i'm trying to use ivy to resolve to a local file for the…

mikey
- 169
- 5
4
votes
1 answer
Flutter: Cannot determine path to 'tools.jar' library for Android API 30 Platform (C:/Users/Sam/AppData/Local/Android/Sdk)
I'm having difficulty uploading my upgraded project to Google Play.
I need to produce a signed version of the app, but if I try App bundle it complains I have an obsolete Gradle plugin, that I can't upgrade. I have a bleeding edge gradle version in…

Sam
- 1,659
- 4
- 23
- 42
4
votes
3 answers
Unable to locate tools.jar for Java SE 14
tools.jar is not present in latest Java version 14. Can anyone help me to understand whether it is replaced or where it is?
My system is having:
C:\Users\Admin>wmic os get osarchitecture
OSArchitecture
64-bit
I have installed latest Java version by…

Madala
- 41
- 1
- 4
4
votes
5 answers
What exactly is "tools.jar" in the Android SDK?
So, I've been trying to build a project in LibGDX for about 10 hours now. In case you'r unfamiliar, LibGDX is one of those platforms where you specify a project directory at the start, along with any required SDKs and then when you're ready to start…

Jalapeno
- 202
- 1
- 2
- 9
4
votes
1 answer
Attach java agent from all-in-one-jar
I just wanted to try myself with javassist, and began editing a library's method body. To hook into the library i attach an agent using the tools.jar, located in '%JAVA_HOME%..\lib\'.
But I dislike the idea of every pc I'm using this on having the…

MexSource
- 55
- 1
- 1
- 7
4
votes
1 answer
Why does using the Java Attach API fail on linux? (even though maven build completes)
I've been using the Java Attach API (part of tools.jar) to attach to a running java process, and shut it down from within.
It works perfectly on Windows. However when trying to actually execute the attach code when running on linux I get a…

Tom
- 251
- 2
- 13
4
votes
3 answers
how to add tools.jar as a "dynamic dependency" in sbt. is it possible?
i need to use tools.jar in my project, but there is not much sense to package it in the jar, since the user already have it. so, is it possible to use it as a "dynamic dependency"? meaning, i want my code to compile by using tools.jar file found in…

gilad hoch
- 2,846
- 2
- 33
- 57
3
votes
2 answers
Can't get ant to work, trying to install Clojure
I have been attempting to install Clojure on Ubuntu using the directions found here:
http://riddell.us/ClojureOnUbuntu.html
For starters, that version of Java no longer seems to be supported- so I installed the Open JDK version 7 and have been…

ZenLikeThat
- 2,052
- 3
- 16
- 23
3
votes
4 answers
Run-android build failed for react native project due to not finding tools.jar
I was following a youtube video on installing react native and completely new to this. I put in the command to run-android for react native project and a build error popped up saying I'm missing tools.jar. I saw a previous support thread on here…

Gary C
- 31
- 1
- 4
3
votes
0 answers
Missing tools.jar in JDK 8
i've got jdk-8u60-windows-x64.exe and jdk-8u60-windows-i586.exe.
Both are installed and JAVA_HOME points to the 64 bit version.
None of them got tools.jar in the lib folder as described here
Does anyone know what is wrong with the installation?

user3366353
- 55
- 5
3
votes
2 answers
How to include tools.jar into uberjar (using maven-shade-plugin)?
pom.xml:

leventov
- 14,760
- 11
- 69
- 98