Jeff Spence schrieb am 30.12.2010 um 12:31 (-0500): > "ant compile" and I get the error: > > Unable to locate tools.jar. Expected to find it in C:\Program > Files\Java\jre6\lib\tools.jar > Buildfile: build.xml does not exist! > Build failed
That's not a JDK, just the JRE: it has no developer tools. > I set my system path to C:\Program Files (x86)\Java\jdk1.6.0_21\lib; > to see if this would help but it didn't. So you have a JDK installed. But the lib/ directory is not the one to add to your path. Use the bin/ directory if you want to do that. > Do I need to download a different version of the jdk that will > install in the Program Files dir for win64bit for example? You need a JDK that works for your platform. > Or, is there a place to change where the system looks for tools.jar. > I am using Windows ver 6.1.7600 At the command prompt, enter: set java Is JAVA_HOME set? If not, set it in your desktop using sysdm.cpl (enter that in the little window that opens on hitting Windows-R), and be sure to set it to: C:\Program Files (x86)\Java\jdk1.6.0_21 Then, try again. -- Michael Ludwig --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org