Home > Unable To > Ant Tools.jar Error

Ant Tools.jar Error


Browse other questions tagged java apache ant build compilation or ask your own question. Code: sudo apt-get remove openjdk-6-* Or, if you want to keep JDK 6 -- I can't think why anyone would -- this should do it (but I can't test it on If those answers do not fully address your question, please ask a new question. The following sets up the environment: set ANT_HOME=c:\ant set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_13 set PATH=%PATH%;%ANT_HOME%\bin I was facing the below issue while executing the ant C:\>ant Unable to locate tools.jar.

Did you already have openjdk-6 installed? Works for me ! –gihanchanuka Oct 17 '14 at 9:43 add a comment| up vote 5 down vote Don't spend too much time for searching tools.Jar. Can Infrared Thermometer (IR Gun) be used to measure the ambient room temperature? PATH is set with %JAVA_HOME%\bin; %ANT_HOME%\bin. http://stackoverflow.com/questions/2618281/ant-error-when-trying-to-build-file-cant-find-tools-jar

Ant Unable To Locate Tools.jar. Expected To Find It In

Expected to find it in C:\Program Files\Java\j2re1.4._02\lib\tools.jar." Assume Ant is installed in c:\ant\. asked 4 years ago viewed 4525 times active 4 years ago Linked 38 Ant error when trying to build file, can't find tools.jar? Register Lost Password? Remember, the OS alternative should still refer to the JDK.

User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. To solve the issue what I did was set the the JAVA_HOME from the command line By executing the below command : C:\>set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_13 Then I checked the Java Version Adv Reply Page 1 of 2 12 Last Jump to page: Quick Navigation Programming Talk Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The Tools.jar Download For Jre7 Download Faq Reply With Quote September 27th, 2004,09:16 AM #8 StevenC View Profile View Forum Posts Visit Homepage  PHP & Java Error Master Devshed Beginner (1000 - 1499 posts)  

The jre dont have it. Tools.jar Download For Jre7 share|improve this answer answered Jan 25 '13 at 1:33 Zorayr 10.2k16674 Worked in my case –Rohit Mar 1 '13 at 20:53 1 not working in my case i Maybe you can give a hint on where to start? (Never used ant before lol). http://stackoverflow.com/questions/6676107/unable-to-locate-tools-jar Add two new user variables "ANT_HOME" and "JAVA_HOME" with their respective values.

What is the output of echo %PATH% in the command prompt where you are running ant? –Tanzeel Kazi Dec 20 '12 at 3:24 updated question with echo %path% –Omar Unable To Locate Tools.jar Ubuntu Are HTTP brute force attacks a thing nowadays Which requires more energy: walking 1 km or cycling 1 km at the same speed? Faq Reply With Quote April 13th, 2004,07:24 AM #2 No Profile Picture rainerschulz View Profile View Forum Posts  Registered User Devshed Newbie (0 - 499 posts)  Join Date Build failed That's the message you'd expect with no build.xml in the current directory.

Tools.jar Download For Jre7

share|improve this answer answered Jan 22 '13 at 11:23 Nick Holt 20.5k32539 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google For example, you should set JAVA_HOME as "C:\Program Files\java\jdk1.6.0_26" and have %JAVA_HOME%\bin in your system path. Ant Unable To Locate Tools.jar. Expected To Find It In Let's also try this: Code: update-alternatives --get-selections | grep ^java Last edited by r-senior; May 10th, 2012 at 08:09 PM. Unable To Locate Tools.jar Linux share|improve this answer answered Apr 27 at 20:11 Arashsoft 528429 It worked like a charm! –PMoubed Jul 27 at 16:09 add a comment| up vote 1 down vote Make

To solve this, the $JAVA_HOME variable should instead point to this location /usr/local/java/jre (assuming the JDK path is /usr/local/java) -- there is actually jre folder inside the JDK installation directory, that ANT (Another Neat Tool) is a build tool which allows you to automate the process of building, testing and deploying a software project. I think the problem is that ant is running using the JRE from openjdk-6-jre but tools.jar comes from openjdk-7-jdk and it's not finding it. but how can I uninstall jre? Tools.jar Download For Jre 8

share|improve this answer edited Mar 24 '12 at 1:34 answered Feb 5 '12 at 19:42 Mads Hansen 32.9k774100 add a comment| up vote 2 down vote Try to check it once I installed ant at C:\apache-ant-1.6.1, and I have j2sdk at C:\j2sdk1.4.1_02. How did Samba, Krishna's son, get relieved from Curse of Krishna? Join them; it only takes a minute: Sign up Why is ant looking for tools.jar in the wrong dir? [duplicate] up vote 11 down vote favorite This question already has an

Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Build.xml Does Not Exist Ant Thank you :) –HasanAboShally Sep 25 '13 at 15:48 Yup - this worked for me too. –PhillipKregg Apr 10 '14 at 14:34 1 Is there a reason why Is my Windows XP got some problme or what?

And if you bought a notebook with Win ME on it, I have some magic beans to sell you Faq Reply With Quote April 14th, 2004,03:20 AM #4 No Profile Picture

Charging the company I work for to rent from myself Plane determined by two lines Simple string joiner in modern C++ Howto prevent chrgrp from clearing “setuid bit”? Should I use "Search" or "Find” on my buttons? The time now is 06:55 PM. Tools.jar Not Found Java 8 I almost forgot i post this question.

If you were to uninstall it, the JRE should then pick up from openjdk-7-jre (which should be installed as a dependency of openjdk-7-jdk) and you should be OK. share|improve this answer answered May 9 '12 at 16:00 Blake Mitchell 1,1901213 6 this. Proper solution?0Error: Unable to locate tools.jar0Installing ANT - unable to locate tools.jar Hot Network Questions Train carriages in the Czech Republic How can I easily find structures in Minecraft? This shows that the java.home system property is pointing to the 1.6 JRE, despite all the environment variables pointing to 1.7.

Adv Reply May 10th, 2012 #8 r-senior View Profile View Forum Posts Private Message Iced Blended Vanilla Crme Ubuntu Join Date May 2007 Location Leeds, UK Beans 1,664 DistroUbuntu 13.10 Try this, step by step procedure : markupjavascript.com/2014/07/… –Mandeep Pasbola Jul 8 '14 at 9:40 add a comment| 5 Answers 5 active oldest votes up vote 123 down vote accepted A Build failed Thanks, that really helped! Can you find me?

Expected to find it in /usr/lib/jvm/java-6-openjdk-i386/lib/tools.jar Buildfile: build.xml does not exist! All the answers about copying tools.jar into the correct position is a poor idea at best. Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 15 Thread: Ant cant locate tools.jar Thread Tools Show Printable Version Subscribe to this Thread… Display Linear So few programs provide this useful clue. –Peter Flynn Nov 26 '13 at 8:38 1 Install JDK, Add new system variable "JAVA_HOME" to and add

Which requires more energy: walking 1 km or cycling 1 km at the same speed? mysql55 spontaneous malfunction Modern solders carry axe instead of combat knife. Last edited by kurious; September 27th, 2004 at 01:13 PM.