The archive: C:/Java/jdk1.6.0_26-32/lib/tools.jar which is referenced by the classpath, does not exist.
This is the error I have when run Tomcat. There was no problem cleaning or publishing - only when i start the Tomcat server.
Now, I checked my folders and there is a tools.jar
in file path C:\Java\jdk1.6.0_34\lib
What am i missing?
using jre6 and have jdk1.6.0_34 installed
I realised no tools. jar exists in the Windows build of OpenJDK 11.
If you're using newer Java versions, it could happen that during the start of STS/Eclipse you get error saying that tools. jar could not be found. Since this tools. jar library could not be found in JRE, what you need to do is make your STS/Eclipse use JDK since it contains tools.
I found this question trying to build my project using Ant in Eclipse, and I would get the same error message as above. The suggestions in @Parth's and other answers to edit the Installed JREs is the first step. What I also needed to run Ant successfully was
Otherwise it seems that Ant will still try to build with the old JRE that doesn't have tools.jar
. Hope this helps someone.
Right click on your eclipse project, In Preferences
go to Java > Installed JREs, select your JDK
and click on Edit
. In the new Dialog you can add external jars like tools.jar
to your execution environment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With