I used this, this, this and this solutions, but no one help me. At leat that's the most likely causes. –Patrice M. The solution was, to use the above help (with the setting of the JAVA_PATH to become my Oracle version 8u40 of Java), such that both the compiler and the tools.jar file It then asked for a directory where it could install the Runtime Environment and I selected the SAME DIRECTORY where I installed the JDK. have a peek at this web-site
share|improve this answer answered Jan 18 '13 at 8:26 h22 11k73256 The command is to set up the server using a standard App Engine for Java for Google Cloud 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. Word for fake religious people Why is the movie called "Dirty Dancing"? Hope it helps. Visit Website
why do they give the same output? I have had similar issues after installing a product, like Oracle, that puts it's JRE at the beginning of the PATH. its a smarter way :) –geek_sandeep May 1 '15 at 18:35 add a comment| up vote 5 down vote accepted I solved issue with setting %JAVA_HOME% to start of the PATH.
Do streams take advantage of branch-prediction? I use Windows 8.1 My JAVA_HOME system variable set to c:\programs files\java\jdk1.7.0_51 and to c:\programs files(x86)\java\jdk1.7.0_51 My PATH system variable set also to %JAVA_HOME%/bin, my %ANT_HOME% is set to c:\apache-ant. So please reinstall the JDK in a different location and if it is successful then you will see the tools.jar file. Is it possible to change airports when using China's on-arrival transit visa scheme?
The latter has the tools.jar, java.exe, javac.exe, etc. share|improve this answer answered May 9 '12 at 16:00 Blake Mitchell 1,3401215 6 this. The problem must have been related to an update that Java prompted me to install a day earlier, which apparently modified JRE such that tools.jar was removed from the lib path. Browse other questions tagged java ant java-home tools.jar or ask your own question.
But when I execute ant build in the android app derictory I get the unable to locate tools.jar. How can I keep the computers on my spaceship from temperature related death after a hull breach? aNdRO Jun 4 '13 at 6:47 add a comment| up vote 6 down vote No, according to your directory structure, you have installed a JRE, not a JDK. Is there a way to do that?
Set your JAVA_HOME and PATH variables so that they point to a JDK, not a JRE. Expected to find it in C:\Program Files\Java\j2re1.4._02\lib\tools.jar." Assume Ant is installed in c:\ant\. android ant ui-automation build.xml uiautomator share|improve this question asked Feb 24 '14 at 14:07 Rikki Tikki Tavi 1,47222559 Did you set these variables in PATH variable as well in So, on Ubuntu 14.04 x64 using Java8: sudo apt-get install openjdk-8-jdk openjdk-8-jre export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 share|improve this answer answered Jun 26 at 20:24 Sasha Zezulinsky 46458 add a comment| up vote 0
I'm actually facing a similar problem and it still continues :-( . Check This Out I am glad to find this forum after a hard search. 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, Faq Reply With Quote September 27th, 2004,10:16 AM #8 StevenC View Profile View Forum Posts Visit Homepage PHP & Java Error Master Devshed Beginner (1000 - 1499 posts)
The author kurious, use different name like when he ask to save the ant folder as --> c:\apache-ant-1.6.1 and latter when he sent the enviroment path he wrote like this --> The scenario I am in, therefore has the jdk downloaded as it came from Oracle in my /home/david/Desktop/Android5.0/jdk1.8.0u40 directory - the Android packages as they came in /home/david/Desktop/Android5.0 directory, my Eclipse Last edited by kurious; September 27th, 2004 at 02:13 PM.
Isn´t so? 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. share|improve this answer edited Oct 11 '13 at 20:31 answered Jul 13 '11 at 8:30 Sean Patrick Floyd 175k34319453 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 The point is that gradle does not take it automatically, so I was adding that tools package to my libs folder, and then adding it to dependencies.gradle .
No arrowheads and colour Why is this 'Proof' by induction not valid? A Page of Puzzling If the poster gets a prize, who gets it, the person presenting it or the first author? 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 http://amazonfonts.com/unable-to/ant-unable-to-locate-tools-jar-expected-to-find-it-in.html If a journal not indexed in SCI nor in EI, is it worth publishing in?
Make sure that your IDE can find these jars the way it was designed and intended for. Advanced System Settings, Environment Variables, System Variables, New... 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. The scenario I am in, therefore has the jdk downloaded as it came from Oracle in my /home/david/Desktop/Android5.0/jdk1.8.0u40 directory - the Android packages as they came in /home/david/Desktop/Android5.0 directory, my Eclipse
Proper solution?0Error: Unable to locate tools.jar0Installing ANT - unable to locate tools.jar Hot Network Questions When hiking, why is the right of way given to people going up? I am using winXP by the way. why do they give the same output? Browse other questions tagged java google-app-engine ant build or ask your own question.
I already look thru this forum and find a solution that did not work for me. True - there are methods where one can make one version of Java pretend to be another - but I didn't want to go there, because I am setting up a share|improve this answer answered Feb 24 '14 at 15:33 Rikki Tikki Tavi 1,47222559 add a comment| up vote 2 down vote In regards to the tools.jar, I experienced the following: when