Ant Tools.jar Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers ant unable to locate tools.jar. expected to find it in or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x tools.jar download for jre7 Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it unable to locate tools.jar linux only takes a minute: Sign up “Unable to locate tools.jar” when running ant [duplicate] up vote 41 down vote favorite 5 This question already has an answer here: Unable to locate tools.jar 19 answers When running ant, I get the
Tools.jar Download For Jre 8
following message: Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar I have JAVA_HOME set to C:\Program Files\Java\jdk1.7.0_02, PATH includes C:\Program Files (x86)\Java\jdk1.7.0_02\bin, CLASSPATH includes C:\Program Files (x86)\Java\jdk1.7.0_02, and ANT_HOME is set to C:\ant. It seems that ant is ignoring all of these settings and looking for the tools.jar somewhere else. There are no environment variables which point to the jre6 path. Any ideas why? java ant java-home tools.jar share|improve this question asked Feb 2 '12 at 20:27 tools.jar download for jre7 download john 323259 marked as duplicate by James Lawruk, fglez, jcern, Camilo Martin, flup May 22 '13 at 15:19 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. are you sure there are no classpath settings in ant folder? –Nambari Feb 2 '12 at 20:30 Not that I can tell, but I might be missing something. What would I be looking for to find that? –john Feb 2 '12 at 20:33 2 PLease verify the JAVA_HOME path of your system environment variable... It must be like "C:\Program Files\Java\jdk1.6.0_12\" and try to kill all java process and try after it will run 100%. –Dhrumil Shah Mar 20 '13 at 10:32 2 Install JDK, Add new system variable "JAVA_HOME" to
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack unable to locate tools.jar ubuntu Overflow the company Business Learn more about hiring developers or posting ads with us
Build.xml Does Not Exist Ant
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a
Tools.jar Not Found Java 8
community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unable to locate tools.jar [duplicate] up vote 58 down vote favorite 7 Possible Duplicate: Unable http://stackoverflow.com/questions/9119479/unable-to-locate-tools-jar-when-running-ant to locate tools.jar I'm trying to use ant to compile using this command : ant compile I don't know if the problem comes from my windows 64bit, or by something else. Because I have java Installed in the 64 & 32 prog files. 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 http://stackoverflow.com/questions/6676107/unable-to-locate-tools-jar I get this error message : Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar I searched for tools.jar in the ant lib folder, in the java 64 and 32, but no trace of it in the system. What do you think ? java apache ant build compilation share|improve this question asked Jul 13 '11 at 8:26 Wassim AZIRAR 4,0512691145 marked as duplicate by Andrew, Pshemo, Ralgha, P.T., finnw Feb 4 '13 at 19:27 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. You forgot to add JDK path. 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 JRE doesn't have a tools.jar, you need a JDK. Set your JAVA_HOME and PATH variables so that they point to a JDK, not a JRE. share|improve this answer edited Oct 11 '13 at 20:31 answered Jul 13 '11 at 8:30 Sean Patrick Floyd 168k31310442 9 Adding "C:\Program Files\Java\jdk1.7.0_65" to JAVA_HOME and "C:\Program Files\Java\jdk1.7.0_65\bin" to PATH did the trick. (jdk1.7.0_65 is for JDK 1.7 Update 65 and can vary) &
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn http://stackoverflow.com/questions/5730815/unable-to-locate-tools-jar more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, http://forums.devshed.com/java-help-9/ant-unable-locate-tools-jar-setting-environmental-variables-122244.html helping each other. Join them; it only takes a minute: Sign up Unable to locate tools.jar up vote 117 down vote favorite 14 I am building a project programmed in Java. I got this problem: Unable to unable to locate tools.jar. 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. any idea? java share|improve this question edited Mar 4 at 16:31 Vertexwahn 3,11732249 asked Apr 20 '11 at 13:07 olidev 4,8693491153 I think tools belongs to the JDK not to the JRE. Isn´t so? C:\Program Files\Java\jdk1.6.0_24\lib –Edwin Dalorzo Apr 20 '11 at 13:10 3 unable to locate As an aside, what I find astonishing is that the program actually said where it looked. 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
Search Username Password Remember Me? Register Lost Password? facebook google twitter rss Free Web Developer Tools Advanced Search Forum Programming Languages Java Help Ant unable to locate tools.jar and setting environmental variables Thread: Ant unable to locate tools.jar and setting environmental variables Share This Thread Tweet This + 1 this Post To Linkedin Subscribe to this Thread Subscribe to This Thread February 16th, 2004,05:36 AM #1 No Profile Picture javaWut View Profile View Forum Posts Registered User Devshed Newbie (0 - 499 posts) Join Date Oct 2003 Posts 6 Rep Power 0 Ant unable to locate tools.jar and setting environmental variables Hi. I am having problems installing apache ant. I installed ant at C:\apache-ant-1.6.1, and I have j2sdk at C:\j2sdk1.4.1_02. I set JAVA_HOME as C:\j2sdk1.4.1_02 and ANT_HOME as C:\apache-ant-1.6.1. PATH is set with %JAVA_HOME%\bin; %ANT_HOME%\bin. I can: 1) execute java commands (ie java, javac) at any directory. I cannot: 1) execute ant cmd (ie ant -version) at any directory except ANT_HOME\bin. 2) and when I do, I get "Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\j2re1.4._02\lib\tools.jar." There is no tools.jar in C:\Program Files\Java\j2re1.4._02\lib! Also Tomcat was giving me this error "No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. " I followed the suggestion and bypassed that error, and I guess I can do the same with ant; but I want to figure out what I am doing wrong. >_< Please advice. PS. My note book came with an IBM 32-bit SDK for Java 2, v.1.4.1 that I did not uninstall. 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 Apr 2004 Posts 1 Rep Power 0 Take a look in C:\lib (I copied it in the java jdk folder ) Faq Reply With Quote April 13th, 2004,09:25 AM #3 kurious View Profile View Forum Posts Prom night: 1973 Devshed Beginner (1000 - 1499 posts) ð