Questions tagged [tools.jar]
82 questions
0
votes
0 answers
Java source code modification in annotation processor
Is there any way to do something similar, using java>9, to what is done in this article where it adds the final modifier to private variables?
I know tools.jar has been declared as legacy but how does lombok still work in java11?
I know there are…

user1934513
- 693
- 4
- 21
0
votes
1 answer
App has encountered a problem. The archive C:/Program Files/Java/jre1.8.0_251/lib/tools.jar.jar which is referenced by the classpath does not exist
I have tried adding the tools.jar file manually (as suggested in another question's answer from StackOverflow), but this did not resolve the issue. This error first occurred with the last update of Java on my laptop. Any suggestions as to how I…

Cassiopeia
- 37
- 9
0
votes
1 answer
Missing tools.jar in SpringTools Suite when invoking via command line
I'm seeing the following screen:
upon STS startup via script:
start /B C:\"Program Files"\SpringTools4\sts-4.5.0.RELEASE\SpringToolSuite4.exe -data %~dp0 -clean -showlocation -vmC:\Java\jdk1.8.0_144\bin\java.exe -vmargs -Xmx1024m…

Simeon Leyzerzon
- 18,658
- 9
- 54
- 82
0
votes
0 answers
Usage of tools.jar in JDK9 and beyond
IN my project, I have a dependency on tools.jar for instrumentation purposes. Without tools.jar in jdk9 and beyond (in JD11 too), where and how can I resolve the dependency?
Has anyone come across same scenario?
Regards,

ha9u63a7
- 6,233
- 16
- 73
- 108
0
votes
1 answer
Adding tools.jar conditionally
Currently I have included tools.jar in my pom dependencies. In JDK11 it needs to be removed from dependencies. Please help me including tools.jar in dependencies only if java version is less than 9 else it should be present in pom.

user3592376
- 221
- 1
- 3
- 8
0
votes
0 answers
Maven Compile cannot find jars from rt.jar
i have the following dependency in my app as I need some classes from rt.jar.
com.sun
rt
1.5.0_06
system
…

ha9u63a7
- 6,233
- 16
- 73
- 108
0
votes
1 answer
Trying to use tools.jar - gradle
I am using gradle to package some java code into a jar. I am using some classes from tools.jar. I have had success in gradle building it and making a jar, but when I run that jar using java -jar .jar I get the…

Sam Thomas
- 647
- 7
- 25
0
votes
1 answer
How to get maven compiler plugin to work without failing with tools.jar not found error?
We are having some problems using maven under a strange unix-ish dev platform. The maven compiler plugin complains about not being able to find the tools.jar due to weird JDK/JRE confusion in the default installed java.
[ERROR] Failed to execute…

Gray
- 115,027
- 24
- 293
- 354
0
votes
1 answer
How to deploy tools.jar into Nexus using Maven?
From the same directory I tried to deploy
spark-assembly-1.6.2.2.5.0.0-1245-hadoop2.7.3.2.5.0.0-1245.jar
and
tools.jar
(the later being a dependency of the first)
Despite launching the same commands:
mvn deploy:deploy-file…

user1767316
- 3,276
- 3
- 37
- 46
0
votes
0 answers
Spring ROO build error: no tools.jar , jdk7, pom.xml
every pioneers,
I want to try to build Spring Roo 2.0.0.M2(http://projects.spring.io/spring-roo/) with its saying of STS 3.7.0 and JDK 1.7.0_45, and I couldn't find the solution even according the post on other sites or on " Builds failing after…
0
votes
3 answers
Check if tools.jar is available and load it dynamically during runtime
I'm working on a monitoring application, which uses Sigar for monitoring to monitor different kind of applications. One problem with Sigar is that when monitoring the heap usage of a Java application (JVM) I only get the maximum heap size but not…

tzwickl
- 1,341
- 2
- 15
- 31
0
votes
1 answer
Gradle cannot find tools.jar
As it's mentionned in the title, when I want to run my task for gradleit gives me an execution failed for task ':compileJava'. could not find tools.jar
I checked for tools.jar in C:\Program Files\Java\jdk1.7.0_17\lib and I found it, I added JRE…

zackzulg
- 599
- 2
- 5
- 21
0
votes
1 answer
How to deploy java tools.jar in a netbeans native package?
My javafx application use the java compiler. I've used netbeans to package it (EXE installer) on a windows machine, then installed it by double-click on the bundle. Then I get window error message: Error invoking method. - Failed to launch JVM. If I…

O. Durand
- 169
- 1
- 8
0
votes
1 answer
File location of tools.jar?
I'm trying to configure a single node Hadoop environment on my iMac 10.9.5. This has been a much larger pain than I anticipated and I have Java to thank for a lot of that. I've spent the past two hours dealing with this issue.
Error: Could not find…

Austin A
- 2,990
- 6
- 27
- 42
0
votes
2 answers
Not able to start Android studio
I have gone through all these links.
Android Studio can't Start
Error to run Android Studio
i have also set
Path- C:\Program Files\Java\jdk1.7.0_05\bin
JAVA_HOME -C:\Program Files\Java\jdk1.7.0_05
My android studio is in this path -…

RAGHU RAM
- 11
- 1
- 1