Home > Ant Cannot > Ant Cannot Find Tools.jar

Ant Cannot Find Tools.jar

When I installed the Java JDK it asked me for a directiy where I wanted to install. thanks in advance –olidev Apr 20 '11 at 13:35 Start > Control Panel > Software (or similar, depending on Win* version) –Sean Patrick Floyd Apr 20 '11 at 13:37 more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Newton's second law for individual forces Making a large file using the terminal In a company crossing multiple timezones, is it rude to send a co-worker a work email in the http://kshelper.com/ant-cannot/ant-cannot-find-rt-jar.html

share|improve this answer answered Dec 20 '12 at 3:29 Perception 55.6k7104138 I've updated my question with the output of %JAVA_HOME% –Omar Jackman Dec 20 '12 at 3:34 add a Where do airports use 3-bar VASI for the visual glideslope? Also, are you using Open JDK? The two directories should be identical. http://stackoverflow.com/questions/2618281/ant-error-when-trying-to-build-file-cant-find-tools-jar

share|improve this answer answered Feb 25 at 9:25 gudthing 1,8052926 2 the tool.jar is in %JAVA_HOME%\lib; not in bin folder. –GMsoF Jun 2 at 9:58 does this mean You can also add a bounty to draw more attention to this question once you have enough reputation. –CSᵠ Oct 27 '14 at 10:42 add a comment| up vote 0 down What I did to was copy the tools.jar from JDK/lib to JRE/lib and the error disappeared –barca_d Nov 7 '14 at 9:12 Yes, I observed this! Join Date Apr 2008 Location Portugal Beans 59 DistroLubuntu 12.04 Precise Pangolin Ant cant locate tools.jar Hello, a few days ago I installed "ant" to use AspectJ in Android: http://blog.punegtug.org/2010/11/add...o-android.html However,

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. I tend to use Maven these days but I know Eclipse integrates well with Ant and there's plenty of documentation: http://www.eclipse.org/eclipse/ant/index.php http://help.eclipse.org/indigo/index...-81_basics.htm http://ant.apache.org/manual/ Just as a footnote to all of this, Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar2Ant: not able to find tools.jar0Error: Unable to locate tools.jar0Installing ANT - unable to locate tools.jar0“Unable to find a javac compiler” error in Ant If you have a different question, you can ask it by clicking Ask Question.

Add comments to a python script and make it a bilingual python/C++ “program” Is it unethical to poorly translate an exam from Dutch to English and then present it to the Why was Susan treated so unkindly? The 10'000 year skyscraper Print a letter Fibonacci Advisor professor asks for my dissertation research source-code Were the Smurfs the first to smurf their smurfs? I am having problems installing apache ant.

Does sputtering butter mean that water is present? System property 'java.home' is not JAVA_HOME environment variable. Just for you indication this are the steps that taken to install ANT:- 1.downlaod the binary ANT 2.Unzip the apache-ant-1.6.2 folder 3.make a new folder in C:/ant 4.copy the apache-ant-1.6.2 lib Browse other questions tagged java apache ant build compilation or ask your own question.

Algorithm of checking whether an element is present in a merkle tree How to make plots 'blacker'? http://stackoverflow.com/questions/6676107/unable-to-locate-tools-jar Build failed So that it was searching the tools.jar directory in the lib of the jre6 but the file was located into the the jdk directory. share|improve this answer answered Apr 22 '14 at 13:35 Drew 1,439621 add a comment| up vote 5 down vote I was having the same problem, none of the posted solutions helped. Then the 'ant' command will work fine Faq Reply With Quote Share This Thread  Tweet This + 1 this Post To Linkedin Subscribe to this Thread  Subscribe to This

Expected find it in C:\Program Files\Java\jre7\lib\tools.jar 4 Error: Unable to locate tools.jar. share|improve this answer answered Dec 20 '12 at 3:38 Omar Jackman 10.6k23157 add a comment| Not the answer you're looking for? share|improve this answer edited Sep 29 '12 at 23:02 Marko 8,394102653 answered Sep 29 '12 at 10:22 sathiya 5911 is this approach recommendable? –S_M Feb 12 '15 at 9:16 How can I check that the voltage output from this voltage divider is 2.25V?

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 This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'sun-java6-jdk' has no installation candidate So, i can't really fix this Code: ant -noclasspath Adv Reply May 10th, 2012 #5 Flame_Phoenix View Profile View Forum Posts Private Message Just Give Me the Beans! check over here Does every interesting photograph have a story to tell?

Faq Reply With Quote April 14th, 2004,08:41 AM #5 kurious View Profile View Forum Posts  Prom night: 1973 Devshed Beginner (1000 - 1499 posts)      Join In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms Borders table Latex Do students wear muggle clothing while not in classes at Hogwarts (like they do in the films)?

Build failed C:\> Faq Reply With Quote May 26th, 2010,08:27 AM #10 No Profile Picture sunvsunv View Profile View Forum Posts  Contributing User Devshed Newbie (0 - 499 posts)

I have had this issue before after I tried to move from open JDK to Suns JDK. Do students wear muggle clothing while not in classes at Hogwarts (like they do in the films)? I was running into this same issue using ant with only a JDK installed. There's a difference.

Before it was like this: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Users\Rajkaran\AppData\Local\Smartbar\Application\;C:\Users\Rajkaran\AppData\Local\Smartbar\Application\;C:\Program Files\doxygen\bin;%JAVA_HOME%\bin;%ANT_HOME%\bin So I made it like this: %JAVA_HOME%\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL See that page for more info. share|improve this answer answered Apr 20 '11 at 13:10 duffymo 234k23266450 4 @olidev checking this now but still can't stop pointing out the issue!! What I did I created a new environment variable JAVA_HOME: And then you need to edit your PATH variable to include JAVA_HOME, i.e. %JAVA_HOME%/bin; Re-open command prompt and should run.

Tango Icons Tango Desktop Project. share|improve this answer answered Mar 11 at 11:44 Mohammed 8412 1 This works for me if I use compile instead of runtime –Dori Aug 18 at 9:21 add a comment| Here my solution : Go to the "Gradle Task" view Right Click on the task you want to execute Select Open Gradle Run Configuration In the tab "Java Home" select your share|improve this answer edited Dec 27 '15 at 19:12 huzeyfe 95521837 answered Dec 27 '15 at 18:38 Ganesh Koli 13 add a comment| up vote 0 down vote Copy the tools.jar

Ant is still trying to find tools.jar in C:\Program Files\Java\jre6\lib folder. Expected find it in C:\Program Files\Java\jre7\lib\tools.jar up vote 11 down vote favorite 2 I know that this question is popular, but no one of solutions can help me. Is it possible to write division equation in more rows? I put a REM in front of the original entry, then put the revised JAVA_HOME entry in the line below.

Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar I have installed jdk and the folder: C:\Program Files\Java\jre6\lib is existed in my system but the lib: tools.jar is not there. Cheers Faq Reply With Quote May 14th, 2011,04:32 AM #13 No Profile Picture uanfunzi View Profile View Forum Posts  Registered User Devshed Newbie (0 - 499 posts)  Join I downloaded apache-ant-1.8.2-bin and putted it in C:\Program Files\apache-ant-1.8.2 I tried to put ant everywhere, I switched also the ENV PATH between java 64 and 32 but everytime I get this more hot questions question feed lang-java about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

If I receive written permission to use content from a paper without citing, is it plagiarism? What do you think ? Make sure that your IDE can find these jars the way it was designed and intended for. The java.exe from a JDK must be appear first.

Was there no tax before 1913 in the United States? Newton's second law for individual forces Is there a name for the (anti- ) pattern of passing parameters that will only be used several levels deep in the call chain? How small could an animal be before it is consciously aware of the effects of quantum mechanics? This shows that the java.home system property is pointing to the 1.6 JRE, despite all the environment variables pointing to 1.7.

I see no one else doing it. java deployment ant tools.jar share|improve this question edited Apr 11 '10 at 19:43 Pascal Thivent 401k78825992 asked Apr 11 '10 at 18:58 Derek 1,7173139 4 You need to download JDK Proper solution?0Error: Unable to locate tools.jar0Installing ANT - unable to locate tools.jar Hot Network Questions Why cast an A-lister for Groot?