Home > Java Cannot > Java Cannot Find Tools.jar

Java Cannot Find Tools.jar

Non-Repetitive Quine Technological gradient within a solar system? How to reply? If you got any error like that, don't be upset. tools.jar, which contains non-core classes for support of the tools and utilities in the JDK –secure_paul Feb 2 at 14:56 add a comment| up vote 9 down vote Set your JAVA_HOME weblink

share|improve this answer answered Oct 27 '14 at 10:10 Naresh Lakoji 111 This does not really answer the question. I am having problems installing apache ant. 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. What is this c. 1948 private plane with a sliding canopy?

Not the answer you're looking for? It wasn't until I set "JAVA_HOME=C:\Program Files\Java\jdk1.7.0_04" that the error went away. On 1941 Dec 7, could Japan have destroyed the Panama Canal instead of Pearl Harbor in a surprise attack?

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 Although, the JDK installer gave me a directory structure like this: Directory of C:\Program Files\Java 05/08/2012 09:43 AM

. 05/08/2012 09:43 AM .. 05/08/2012 09:46 AM jdk1.7.0_04 05/08/2012 River Crossing Puzzle What is a Rotary Club Word™? Should I report it?

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. Why do languages require parenthesis around expressions when used with "if" and "while"? I am using winXP by the way. 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 -->

share|improve this answer answered Oct 10 '13 at 5:44 Varun Bhatia 1,9851727 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google 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| Why were pre-election polls and forecast models so wrong about Donald Trump? war) the process threw an exception like: Could not find tools.jar.

I have had this issue before after I tried to move from open JDK to Suns JDK. Register Lost Password? 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 Browse other questions tagged java path makefile or ask your own question.

Furthermore, this is set for all users in the etc/profile Additionally: [email protected]:~/WORKING_DIRECTORY$ java -version java version "1.6.0_43" Java(TM) SE Runtime Environment (build 1.6.0_43-b01) Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed have a peek at these guys Can I use that to take out what he owes me? asked 4 years ago viewed 9148 times active 2 years ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Linked 1 Unable to Run HDFS on MESOS Framework : Could but how can I uninstall jre?

Not the answer you're looking for? Although, the JDK installer gave me a directory structure like this: Directory of C:\Program Files\Java 05/08/2012 09:43 AM

. 05/08/2012 09:43 AM .. 05/08/2012 09:46 AM jdk1.7.0_04 05/08/2012 Advanced System Settings, Environment Variables, System Variables, New... check over here A story behind a weird inductor Why can issuing the same command create more output in tty than in pts/gnome-terminal?

I got this problem: Unable to locate tools.jar. C:\Program Files\Java\jre6\lib ^^^^ It should be something like: C:\Program Files\Java\jdk1.6.0_24 share|improve this answer answered Apr 20 '11 at 13:09 Sean Patrick Floyd 171k33315445 yes, you are right! 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

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

I'm getting the follow in DOS: echo %JAVA_HOME% returns "C:\j2sdk1.4.1_02" echo %ANT_HOME% returns "C:\apache-ant-1.6.1" echo %PATH% returns "C:\j2sdk1.4.1_02\bin; C:\apache-ant-1.6.1\bin;...(and other unrelated paths)" It seems that eventhing is setup correctly, but ant All the answers about copying tools.jar into the correct position is a poor idea at best. Why is Professor Lewin correct regarding dimensional analysis, and I'm not? share|improve this answer edited Apr 11 '10 at 19:50 answered Apr 11 '10 at 19:09 Bozho 388k84777948 2 Setting JAVA_HOME is not necessary at all. –Michael Piefel Oct 25 '11

asked 1 year ago viewed 13677 times active 7 months ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Related 42Gradle does not find tools.jar0gradle: could not find method apply<>2Can't What's the output of these commands: java -version dir %JAVA_HOME% (make sure the listing that appears is actually your Java directory) If both of those work, then I'd start hacking away Do humans have an ethical obligation to prevent animal on animal violence? this content With the file present, this is no longer an issue.

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 share|improve this answer answered Aug 13 '15 at 13:15 sglahn 1625 add a comment| up vote 15 down vote I have a file called gradle.properties at the root of my project share|improve this answer answered Mar 2 '15 at 8:31 Andrei LED 1,498714 add a comment| up vote 6 down vote I was struggling as well for this Solution. 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.

Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar2Ant: not able to find tools.jar3“Unable to locate tools.jar” while the environment variables are correct1unable to locate tools.jar. If we look in there, there is no Tools.jar, hence the error. 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. Set JAVA_HOME to point to the JDK.

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! Join them; it only takes a minute: Sign up Cannot find Tools.jar up vote 2 down vote favorite 1 I am trying to build a copy of JOGL but ant keeps Off-topic necromancy is worse. ~ There are only 10 types of people in the world: Those who understand binary, and those who don't. On which point(s) in a jet engine does the reaction force act?

It worked for after I did that. I set JAVA_HOME as C:\j2sdk1.4.1_02 and ANT_HOME as C:\apache-ant-1.6.1. 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. Expected to find it in C:\Program Files\Java\j2re1.4._02\lib\tools.jar." Assume Ant is installed in c:\ant\.

Expected to find it in /usr/lib/jvm/java-6-sun-1.6.0.26/lib/tools.jar2build.xml expects tools.jar at a different location42Gradle does not find tools.jar18Unable to locate tools.jar. Off-topic necromancy is worse.