Home > Ubuntu Unable > Ubuntu Unable To Locate Tools.jar

Ubuntu Unable To Locate Tools.jar

share|improve this answer answered Apr 5 '11 at 23:54 duffymo 236k23273453 I have both, jdk and jre. In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. Are you getting the specified path? –Renju Chandran chingath Oct 21 '13 at 8:16 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote I was able Word for fake religious people When hiking, why is the right of way given to people going up? this contact form

It looks to me like they might have JAVA_HOME set to the jre inside of the jdk instead of to the jdk itself. –ArtOfWarfare Feb 24 at 19:42 | show 1 share|improve this answer answered Apr 27 at 20:11 Arashsoft 6361532 It worked like a charm! –PMoubed Jul 27 at 16:09 add a comment| up vote 1 down vote Make That is even if a formal build process is in place. See perhaps.

Required fields are marked *Name * Email * Website Spam protection: Sum of one + eight ? * Comment Tags.NET ActionScript 2 Adobe Flash AJAX Android Apache APC Arabic Archos ASP.NET share|improve this answer answered May 21 '13 at 17:57 James Lawruk 15.9k139096 3 JAVA_HOME variable fixed everything, thanks a lot :) –krinn Jan 16 '14 at 18:10 4 PATH Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar1unable 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 175k34319453 yes, you are right!

Expected to find it in /usr/lib/jvm/java-6-openjdk-i386/lib/tools.jar Buildfile: build.xml does not exist! share|improve this answer answered Dec 15 '15 at 8:52 quazgar 1,1431324 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Let's also try this: Code: update-alternatives --get-selections | grep ^java Last edited by r-senior; May 10th, 2012 at 08:09 PM. A for loop that appears to be practically infinite What are these boxes mounted inline on each of the 3 phase wires of a high voltage power line in Miami?

Is it actually supposed to be there or did I get some config/installation thing wrong? I see no one else doing it. 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. How would people living in eternal day learn that stars exist?

share|improve this answer edited Jun 24 '15 at 11:50 answered Jun 24 '15 at 11:44 Ivaylo Slavov 4,77063487 1 I got the same issue with windows, use you way solved Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar Posted 7 years ago Ran into this nasty error today while trying to build irccat. High Jump Champion What's the meaning of "farmer by trade"? asked 2 years ago viewed 1587 times active 2 years ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title?

I found the solution in this website: share|improve this answer answered Jan 27 '14 at 21:30 Flame_Phoenix 3111923 add a comment| Your Answer draft saved draft discarded Sign up Can a typeface be designed to have characters depend on previous characters within a typed word? Because I have java Installed in the 64 & 32 prog files. java share|improve this question edited Mar 4 at 16:31 Vertexwahn 3,17932552 asked Apr 20 '11 at 13:07 olidev 5,0873495154 I think tools belongs to the JDK not to the

Maybe you can give a hint on where to start? (Never used ant before lol). Related 1The annoyed configuration of java-6-openjdk0Java location in Ubuntu using which Java5How to use Eclipse with the JDKs provided by 12.04?-1Java installed but JAVAC not found0Switching to Java 70Eclipse and java Expected to find it in /usr/lib/jvm/java-6-sun- see more linked questions… Related 17Ant + Vista 64 : “Unable to locate tools.jar” (jre/jdk conflict?)58Unable to locate tools.jar2build.xml expects tools.jar at a different location5m2eclipse 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

How would people living in eternal day learn that stars exist? that way you need to change only one variable when you upgrade –Sean Patrick Floyd Aug 4 '14 at 12:15 +1 Thanks for the Tip! –Munchies Aug 5 '14 For details and our forum data attribution, retention and privacy policy, see here Blog Categories:HardwareHowtoProgrammingSystem administrationUncategorizedContactDonateAbout Jan Jonas' blogHowtos & Tutorials Ubuntu 12.04.1 LTS & ant: Resolve "Unable to locate navigate here Alias are not coming from language specific item version How can I keep the computers on my spaceship from dying after a hull breach?

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 Here's one weird trick you can put into your .profile to set JAVA HOME properly, no matter which java you have: export JAVA_HOME=$(dirname $(dirname $(readlink -e /usr/bin/java))) # Test for jdk Did you already have openjdk-6 installed?

Go to Control Panel\System and Security\System.

you think I should remove the jre ? –Wassim AZIRAR Jul 13 '11 at 8:35 2 In a word ... Why wouldn't the part of the Earth facing the Sun a half year before be facing away from it now at noon? The Anti-Santa: Dealing with the Naughty List What is the determinant? Full disk problem on Ubuntu 16.04 (Xenial Xerus) Why is Titanic's Astor asking if Jack is from the Boston Dawsons?

I tend to use Maven these days but I know Eclipse integrates well with Ant and there's plenty of documentation: Just as a footnote to all of this, java ant tools.jar share|improve this question edited Nov 11 '13 at 23:42 Joseph Mansfield 75.3k9136231 asked Apr 5 '11 at 23:50 Genadinik 5,06543138236 It's there on my box –iluxa I think the problem is that ant is running using the JRE from openjdk-6-jre but tools.jar comes from openjdk-7-jdk and it's not finding it. What is the determinant?

Join Date Apr 2008 Location Portugal Beans 59 DistroLubuntu 12.04 Precise Pangolin Ant cant locate tools.jar Hello, a few days ago I installed "ant" to use AspectJ in Android: However, I've fixed it by adding JAVACMD environment variable and set path for it to java.exe in the jdk folder. Add a System Environment Variable called JAVA_HOME with the value of JDK location. Explain it to me like I'm a physics grad: Global Warming Interview question "How long will you stay with us?" What are those "sticks" on Jyn Erso's back?

If the Ch’in dynasty was so short-lived, why was China named for it? vBulletin 2000 - 2016, Jelsoft Enterprises Ltd. If you were to uninstall it, the JRE should then pick up from openjdk-7-jre (which should be installed as a dependency of openjdk-7-jdk) and you should be OK. asked 3 years ago viewed 1390 times active 3 years ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title?

What change in history would I have to make to stop Christmas from happening? It's not even an answer, per se. –Heath Hunnicutt Jul 19 at 22:17 add a comment| up vote 39 down vote It seems like you can have Java installed in /usr/lib/jvm/java-6-openjdk Does advantage negate disadvantage (for things such as sneak attack)? As per the search above, java-6-openjdk-amd64/lib/tools.jar appears to be part of openjdk-6-jdk, which indeed didn't get installed with ant (since it's only marked as suggested (

thanks in advance –olidev Apr 20 '11 at 13:35 Start > Control Panel > Software (or similar, depending on Win* version) –Sean Patrick Floyd Apr 20 '11 at 13:37 share|improve this answer answered Jul 13 '11 at 8:31 Arturs Licis 2,6712043 add a comment| up vote 2 down vote Please make sure that you are pointing to JDK and not Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar2Ant: not able to find tools.jar0Error: Unable to locate tools.jar0Installing ANT - unable to locate tools.jar0“Unable to find a javac compiler” error in Ant This fixed it for me: sudo apt-get install openjdk-6-jdk share|improve this answer answered Sep 18 '13 at 16:55 Kevin Qi 1,93311221 9 Also works for java 7: sudo apt-get install

This new setup will cause maven to look at the JRE directory, that is part of the JDK: $JAVA_HOME\..\lib\tools which now resolves to /usr/local/java/jre/../lib/tools.jar and finally to /usr/local/java/lib/tools.jar which is where