Home > Ant Error > Ant Error Unable To Locate Tools.jar

Ant Error Unable To Locate Tools.jar

Adv Reply May 10th, 2012 #3 Flame_Phoenix View Profile View Forum Posts Private Message Just Give Me the Beans! Fix drywall that lost strength due to hanging curtain rod Is my workplace warning for texting my boss's private phone at night justified? 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 20 '11 at 13:14 John Kane 3,30811029 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 this contact form

What insight can you guys give me? Multiple-Key Sorting Ways to tell a person to be quiet They've lost themselves How to indicate you are going straight? more hot questions default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other And if you bought a notebook with Win ME on it, I have some magic beans to sell you Faq Reply With Quote April 14th, 2004,03:20 AM #4 No Profile Picture

Can I make Nginx automatically OCSP staple certificates at reload/restart? Our solution is to install the Java JDK and JRE pacakges. My home country claims I am a dual national of another country, the country in question does not. Let's also try this: Code: update-alternatives --get-selections | grep ^java Last edited by r-senior; May 10th, 2012 at 08:09 PM.

C:\Windows\System32>antBuildfile: build.xml does not exist!Build Failed What this means is that ant is running but there currently is no buildfile (build.xml) for it to run. I apologize if I did wrong). Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Ant cant locate Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 15 Thread: Ant cant locate tools.jar Thread Tools Show Printable Version Subscribe to this Thread… Display Linear

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. Proper solution?0Error: Unable to locate tools.jar0Installing ANT - unable to locate tools.jar Hot Network Questions verb for looking at someone's newspaper or phone stealthily Charging the company I work for to Adv Reply May 10th, 2012 #2 r-senior View Profile View Forum Posts Private Message Iced Blended Vanilla Crme Ubuntu Join Date May 2007 Location Leeds, UK Beans 1,664 DistroUbuntu 13.10 http://stackoverflow.com/questions/5730815/unable-to-locate-tools-jar Remember, the OS alternative should still refer to the JDK.

Rosa Parks is a [symbol?] for the civil rights movement? Multiple-Key Sorting Can you omit the return type in main function? My note book came with an IBM 32-bit SDK for Java 2, v.1.4.1 that I did not uninstall. You have already mentioned that you have installed jdk and jre.

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 official site 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 If you have both a JDK & JRE, make sure that ANT is using the JDK, you can check JAVA_HOME (environment variable), and on the commandline if you do "javac -version" 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

asked 2 years ago viewed 21029 times active 2 months ago Get the weekly newsletter! Join them; it only takes a minute: Sign up Ant error when trying to build file, can't find tools.jar? Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar Buildfile: build.xml does not exist! You realize that this answer is two years old, right? –duffymo Jul 23 '13 at 12:52 3 In ubuntu: # apt-get install default-jdk and the error disappears. –Xavi Montero Feb

share|improve this answer answered Feb 24 '14 at 15:33 Rikki Tikki Tavi 1,39912457 add a comment| up vote 2 down vote In regards to the tools.jar, I experienced the following: when Go into DOS and type echo %JAVA_HOME% echo %ANT_HOME% echo %PATH% and post what's in them. Not the answer you're looking for? So just copy paste the tools.jar folder from JDK to jre.

Be sure to use different folders during the install. Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar2Ant: not able to find tools.jar0Cannot find tools.jar Java CentOS0Error: Unable to locate tools.jar0“Unable to find a javac compiler” error in Ant Hot Network Not the answer you're looking for?

vBulletin 2000 - 2016, Jelsoft Enterprises Ltd.

Join Date Apr 2008 Location Portugal Beans 59 DistroLubuntu 12.04 Precise Pangolin Re: Ant cant locate tools.jar I installed it but I still have the same problem: Code: AB9:~$ ant Unable although this is a sort of patch, but it will work for now. –Vera Nov 13 '14 at 5:39 add a comment| up vote 1 down vote I was also getting share|improve this answer answered Apr 11 '10 at 19:18 jayshao 1,77411016 It is back to JDK from J2SDK. –Thorbjørn Ravn Andersen Apr 11 '10 at 20:15 Yeah, PS.

Howto prevent chrgrp from clearing “setuid bit”? Is there a way to make a metal sword resistant to lava? RemoteAction Vs REST? Anyway thanks for all the help!