Home > Java Cannot > Java Cannot Find Tools.jar

Java Cannot Find Tools.jar

How can an advanced (circa 7000 AD) spacefaring human civilization be prevented from entering its own solar system? thanks –Ben Parsons Nov 6 '13 at 17:34 Thanks, I wish I could give you 2 ups! –Luke Nov 13 '13 at 23:59 | show 1 more comment up What do I do? Example: Variable Name:JAVA_HOME Variable Value: C:\Program Files\Java\jdk1.7.0_21 Close/reopen your CMD window so that the new variable takes effect before attempting to re-run the ant command. news

share|improve this answer answered Apr 27 at 20:11 Arashsoft 571430 It worked like a charm! –PMoubed Jul 27 at 16:09 add a comment| up vote 1 down vote Make Oh, and if you're using Win ME or Win 98 then you may have to shorten the names of your directories. Can a president win the electoral college and lose the popular vote Should you change a thermostat when changing your water pump C++ calculator using classes Can a text in Latin Why can issuing the same command create more output in tty than in pts/gnome-terminal? http://stackoverflow.com/questions/5730815/unable-to-locate-tools-jar

Gradle will first look for the environment variable JAVA_HOME and if defined, use it . Not the answer you're looking for? What does "there lived here then" mean? 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|

I am seen in darkness and in light, What am I? Help about this problem is been provided in - http://forums.devshed.com/t157310/s.html&highlight=ant http://forums.devshed.com/t122244/s.html&highlight=ant But it does help me, and I would like to comment something about this too. Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar Buildfile: build.xml does not exist! As stated in the earlier replies it should be without quotes and using forward slashes: org.gradle.java.home = c:/Program Files/Java/jdk1.7.0_03 Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best

Would we find alien music meaningful? Isn´t so? I was running into this same issue using ant with only a JDK installed. great post to read I have followed all the instruction correctly.

JAVA_HOME points to the JDK, while java.home points to the JRE. Formula 1 rebus Can a text in Latin be understood by an educated Italian who never had any formal teaching of that language? Please check that C:\Program Files\Java\Jre8" is a valid JDK install. Should the format of my property be : org.gradle.java.home = "c:\Program Files\Java\jdk1.7.0_03" ?** No.

The misleading blanket statements are really what are not necessary. –Drew Apr 22 '14 at 13:14 | show 2 more comments up vote 17 down vote Using suggestions from answers on While I was using the correct JDK, I paid attention to the path of the tools jar maven complained about - it was expecting it to be $JAVA_HOME\..\lib\tools.jar The $JAVA_HOME variable What is a Rotary Club Word™? Wrong way on a bike lane?

Not the answer you're looking for? navigate to this website Proper solution?0Error: Unable to locate tools.jar0Installing ANT - unable to locate tools.jar Hot Network Questions What is this line of counties voting for the Democratic party in the 2016 elections? A guy scammed me, but he gave me a bank account number & routing number. 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.

You point it at the toplevel path where java is installed. Please setup the alternative for javac using the following command: $ sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_32/bin/javac" 1 note: the installed directory of javac for me is "/usr/lib/jvm/jdk1.6.0_32/", you can change JDK. More about the author 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

Why were pre-election polls and forecast models so wrong about Donald Trump? java share|improve this question edited Mar 4 at 16:31 Vertexwahn 3,18532451 asked Apr 20 '11 at 13:07 olidev 4,9873492154 I think tools belongs to the JDK not to the I am using version 1.6, 1.7 and 1.8 simultaneously, and I have played a lot with the alternatives to have everything set properly.

Browse other questions tagged java ant or ask your own question.

The latter has the tools.jar, java.exe, javac.exe, etc. Join them; it only takes a minute: Sign up Unable to locate tools.jar up vote 119 down vote favorite 15 I am building a project programmed in Java. It then asked for a directory where it could install the Runtime Environment and I selected the SAME DIRECTORY where I installed the JDK. task debug << { configurations.compile.each { println it } } share|improve this answer answered Jul 5 '12 at 13:34 Peter Niederwieser 70.4k6158160 Yes it did made it to class

How can this be your answer? share|improve this answer answered Apr 20 '11 at 13:14 John Kane 3,31811030 add a comment| up vote 0 down vote maven-compiler-plugin use jdk ,not jre, tools.jar is in C:\Program Files\Java\jdk1.6.0\lib\tools.jar you What is this c. 1948 private plane with a sliding canopy? click site I am using version 1.6, 1.7 and 1.8 simultaneously, and I have played a lot with the alternatives to have everything set properly.