Short summary: Install the JDK (Java Development Kit) with the matching version. 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. I set JAVA_HOME as C:\j2sdk1.4.1_02 and ANT_HOME as C:\apache-ant-1.6.1. You should try it, it's a really good text program, and it totally beats the crap out of Gedit I tried running the second command line this is what I got: this contact form
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 Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar screen shot: [email protected]:~/workspace/alfresco/HEAD/root/projects$ ant -version Unable to locate tools.jar. Are you new to LinuxQuestions.org? 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 http://stackoverflow.com/questions/5559956/ant-needs-tools-jar-and-unable-to-find-it
Not able to access Internet after running sudo chown -R $USER$USER /usr/lib/ Did Donald Trump say that "global warming was a hoax invented by the Chinese"? Code: ant -noclasspath Adv Reply May 10th, 2012 #5 Flame_Phoenix View Profile View Forum Posts Private Message Just Give Me the Beans! Did Donald Trump say that "global warming was a hoax invented by the Chinese"? What I did is: 1.
Also includes dt.jar, the DesignTime archive of BeanInfo files that tell interactive development environments (IDE's) how to display the Java components and how to let the developer customize them for an What does HR do for me? Build failed C:\> This is the best solution, it worked thank you Faq Reply With Quote April 3rd, 2012,09:32 AM #14 No Profile Picture nagaceg View Profile View Forum Posts Buildfile: Build.xml Does Not Exist! The time now is 07:23 PM.
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 Why did Vader dislike Krennic? When I do "apt-get install sun-java6-jdk" I also get: Code: Package sun-java6-jdk is not available, but is referred to by another package. Discover More Faq Reply With Quote April 14th, 2004,09:41 AM #5 kurious View Profile View Forum Posts Prom night: 1973 Devshed Beginner (1000 - 1499 posts) Join
Selection Command----------------------------------------------- + 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java* 2 /usr/java/jre1.6.0/bin/java 3 /usr/java/jdk1.6.0/bin/javaecho $JAVA_HOME/usr/lib/jvm/jre-1.4.2-gcj- Now when I do a java -version i getjava -versionjava version "1.4.2"gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-14)Copyright (C) Unable To Locate Tools.jar Ant Do progress reports/logging information belong on stderr or stdout? The two directories should be identical. An idiom or phrase for when you're about to be ill Would society of simultaneous hermaphrodites have gender roles? "newfangled", "fandangle" and "fandango" Has Darth Vader ever been exposed to the
Expected to find it in /usr/lib/jvm/java-6-sun-126.96.36.199/lib/tools.jar2build.xml expects tools.jar at a different location5m2eclipse is unable to locate C:\Program Files\Java\jre6\..\lib\tools.jar18Unable to locate tools.jar. http://superuser.com/questions/630379/ant-not-working-on-my-ubuntu-command-ant-version Not the answer you're looking for? Openjdk Tools How do publish end remote events work changing location of texmf folder for use across multiple computers (OS X / Apple) Big O Notation "is element of" or "is equal" What Tools.jar Download For Jre7 Off-topic necromancy is worse.
Join them; it only takes a minute: Sign up Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\j2re1.4._02\lib\tools.jar." Assuming you didn't mis-type this error message, it looks like JAVA_HOME is trying to access a non-existent directory called "j2re1.4._02" The fact that you share|improve this answer answered Dec 19 '13 at 15:44 Aleksi Asikainen 512415 1 Cool, it works! –MrROY May 4 '14 at 9:48 add a comment| up vote 3 down vote navigate here Code: sudo apt-get remove openjdk-6-* Or, if you want to keep JDK 6 -- I can't think why anyone would -- this should do it (but I can't test it on
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 Join Date Apr 2008 Location Portugal Beans 59 DistroLubuntu 12.04 Precise Pangolin Re: Ant cant locate tools.jar The reason I need openjdk-6 is because of a program calle "Jedit" (with J Why is this 'Proof' by induction not valid? Tools.jar Not Found Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ
SPI clock source - master or slave What are the considerations for waterproofing a building's first few floors? Adv Reply Page 1 of 2 12 Last Jump to page: Quick Navigation Programming Talk Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The The jre dont have it. his comment is here Here's what they look like: export PATH="/usr/local/heroku/bin:$PATH" export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 export PATH=$JAVA_HOME/bin:$PATH Here's what my /etc/environment file looks like: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/$ JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" java share|improve this question edited Sep 22 '14 at 5:50 hd1
The unable to locate tools.jar has gone away and I don't see any other errors, but I am not convinced it was an actual fix. PS. Go into DOS and type echo %JAVA_HOME% echo %ANT_HOME% echo %PATH% and post what's in them. tools.jar is normally located under /usr/lib/jvm/java-188.8.131.52.x86_64/lib/tools.jar tools.jar is not in JRE.
PATH is set with %JAVA_HOME%\bin; %ANT_HOME%\bin. I have no installation to check it, but I think that the directory structure is the same under CentOS (cf. Post your question in this forum. Build failed I found a similar thread with a few years: http://ubuntuforums.org/showthread.php?t=634996 (Decided to not post there to avoid necro posting or necro revival, mainly because it is a bannable offense
The next time you decide to drag up an old thread, could you perhaps post in the one where I made the mistake? How can I get an HDR to leave a silhouette? Do spacecraft in Star Wars produce jet blasts when taking off? Let's also try this: Code: update-alternatives --get-selections | grep ^java Last edited by r-senior; May 10th, 2012 at 08:09 PM.
Faq Reply With Quote April 13th, 2004,08:24 AM #2 No Profile Picture rainerschulz View Profile View Forum Posts Registered User Devshed Newbie (0 - 499 posts) Join Date What OS do you have there? –martin clayton Apr 5 '11 at 23:55 OS is Ubuntu. Awesome! Build failed Thanks, that really helped!
Required fields are marked *Name * Email * Website Spam protection: Sum of one + three ? * Comment Tags.NET ActionScript 2 Adobe Flash AJAX Android Apache APC Arabic Archos ASP.NET Faq Reply With Quote November 22nd, 2010,12:48 PM #12 No Profile Picture Iguess View Profile View Forum Posts Registered User Devshed Newbie (0 - 499 posts) Join Date Once I did that, and installed the resulting .deb file, everything was fine. When I directly set jdk bin and ant bin directories in PATH it worked for me.
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 How do I respond when players stray from my prepared material?