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

Ubuntu Unable To Locate Tools.jar

Is there a non-medical name for the curve where index finger and thumb meet? asked 5 years ago viewed 171787 times active 2 months ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title? Post the results. Thanks in advance. Source

Try this, step by step procedure : markupjavascript.com/2014/07/… –Mandeep Pasbola Jul 8 '14 at 9:40 add a comment| 5 Answers 5 active oldest votes up vote 123 down vote accepted A However I get a build error: [ERROR] Unable to locate the Javac Compiler in: /usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class 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 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

java openjdk share|improve this question asked Jan 27 '14 at 21:20 Flame_Phoenix 3111923 add a comment| 1 Answer 1 active oldest votes up vote -1 down vote accepted Apparently I was A JRE is a JRE and a JDK is a JDK. 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- expects tools.jar at a different location5m2eclipse is unable to locate C:\Program Files\Java\jre6\..\lib\tools.jar18Unable to locate tools.jar.

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. 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 How do I fix this? Adv Reply May 11th, 2012 #10 r-senior View Profile View Forum Posts Private Message Iced Blended Vanilla Crème Ubuntu Join Date May 2007 Location Leeds, UK Beans 1,664 DistroUbuntu 13.10

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 Adv Reply May 10th, 2012 #7 Flame_Phoenix View Profile View Forum Posts Private Message Just Give Me the Beans! In my case it was C:\Program Files\Java\jdk1.6.0_45\bin\java.exe share|improve this answer edited Jan 28 '14 at 5:38 Avi Turner 5,84942555 answered Jan 28 '14 at 5:20 user3243105 212 add a comment| up http://stackoverflow.com/questions/5730815/unable-to-locate-tools-jar Should I find punctures by immersing inner tube in water or hearing brezze or feeling breeze or how else?

What is a real-world metaphor for irrational numbers? When hiking, why is the right of way given to people going up? So, on Ubuntu 14.04 x64 using Java8: sudo apt-get install openjdk-8-jdk openjdk-8-jre export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 share|improve this answer answered Jun 26 at 20:24 Sasha Zezulinsky 46458 add a comment| up vote 0 I was quite frustrated at first, because I have installed both the JDK and JRE.

Where should a galactic capital be? https://ubuntuforums.org/showthread.php?t=1977619 So, even of you are indeed using the JDK instead of the JRE, the $JAVA_HOME has to point to the JRE. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'sun-java6-jdk' has no installation candidate So, i can't really fix this For example, you should set JAVA_HOME as "C:\Program Files\java\jdk1.6.0_26" and have %JAVA_HOME%\bin in your system path.

Join Date Apr 2008 Location Portugal Beans 59 DistroLubuntu 12.04 Precise Pangolin Re: Ant cant locate tools.jar Code: AB9:~$ ant -noclasspath Unable to locate tools.jar. this contact form Depowering a high AC PC without killing the rest of the group Configuration of chiral center in cocaine What are the considerations for waterproofing a building's first few floors? I also set export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 rather than just /usr/; JAVA_HOME should be the install directory of the JDK, since Ant will (I think) look in JAVA_HOME/bin and JAVA_HOME/lib. –orlade Aug 3 Ask Ubuntu works best with JavaScript enabled

What does HR do for me? share|improve this answer answered Dec 28 '13 at 7:29 living.li 1 add a comment| up vote 0 down vote You may face similar problem on Ubuntu: Embedded error: tools.jar not found: It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"Get the Sun JDK sudo apt-get install sun-java6-jdk then run sudo update-alternatives --config java and select the option that has the path /usr/lib/jvm/java-6-sun/jre/bin/javaNo more errors. @__lucas http://globalcryptonews.com/ubuntu-unable/ubuntu-unable-to-locate-package-mt-daapd.html asked 2 years ago viewed 2824 times active 1 year ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title?

Referring to equations How to make a shell read the whole script before executing it? 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 Does advantage negate disadvantage (for things such as sneak attack)?

I have forgotten what the puzzle was Can a typeface be designed to have characters depend on previous characters within a typed word?

Shouldn't the ant package depend on the JDK? –dreamlax Apr 22 at 0:27 add a comment| up vote 9 down vote Note: On CentOS / RHEL installing java-1.x.0-openjdk will not be All the answers about copying tools.jar into the correct position is a poor idea at best. Not the answer you're looking for? 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

Let's also try this: Code: update-alternatives --get-selections | grep ^java Last edited by r-senior; May 10th, 2012 at 08:09 PM. asked 5 years ago viewed 85934 times active 3 years ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title? Expected to find it in C:\Program Files\Java\jre6\li b\tools.jar3“Unable to locate tools.jar” while the environment variables are correct11ant build : unable to locate tools.jar. http://globalcryptonews.com/ubuntu-unable/ubuntu-unable-to-locate-package-virtualbox-4-2.html You might also need to set the Java version which is actually used by invoking the update-alternatives tool for java and javac: update-alternatives --config javac update-alternatives --config java Manually setting environment

Go to Control Panel\System and Security\System. In US, is it a good idea to hire a tax consultant for doing taxes? Does "Excuse him." make sense? Now when I invoke ant the output is also the one expected: Code: AB9:~$ ant Buildfile: build.xml does not exist!

I'm actually facing a similar problem and it still continues :-( . Just follow through the commands and follow the chain of links until you get to the javac executable. Add a System Environment Variable called JAVA_HOME with the value of JDK location. Remember, the OS alternative should still refer to the JDK.

Not the answer you're looking for? Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar up vote 1 down vote favorite I'm trying to build a project using ant but I keep receiving this error on issuing ant clean: Unable I simply moved my JDK_path before the oracle one and the issue solved. I would totally give you a bag of coffee beans if I could xD problem solved!

What warning labels could you see on products to be used in space? "newfangled", "fandangle" and "fandango" How to make a shell read the whole script before executing it? Join them; it only takes a minute: Sign up Unable to locate tools.jar [duplicate] up vote 58 down vote favorite 8 Possible Duplicate: Unable to locate tools.jar I'm trying to use Copy and paste it in your ant bin folder, then try to use the command ant -version. 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