cordova - "Unable to locate tools.jar" while the environment variables are correct -
i want configure pc (windows 7) use phonegap 2.7.0 , create android application according tutorial m confirured enviroment variables.
below variables need on configuration shown in command prompt:
microsoft windows [version 6.1.7601] copyright (c) 2009 microsoft corporation. rights reserved. c:\users\adokis>echo %path% c:\program files (x86)\amd app\bin\x86_64;c:\program files (x86)\amd app\bin\x86 ;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\win dowspowershell\v1.0\;c:\program files (x86)\ati technologies\ati.ace\core-static ; c:\users\adokis\development\adt-bundle-windows-x86_64-20130514\sdk\platform-to ols;c:\users\adokis\development\adt-bundle-windows-x86_64-20130514\sdk\tools;c:\ users\adokis\development\apache-ant-1.9.0\bin;c:\program files\java\jdk1.7.0_17 c:\users\adokis>echo %java_home% c:\programs files\java\jdk1.7.0_17 c:\users\adokis>echo %ant_home% c:\users\adokis\development\apache-ant-1.9.0 c:\users\adokis>
the problem when use ant command error "unable locate tools.jar" shown
c:\users\adokis>ant unable locate tools.jar. expected find in c:\program files\java\jre7\li b\tools.jar buildfile: build.xml not exist! build failed
i double checked variables correct can't figure out why looking tools.jar @ unable locate tools.jar. expected find in c:\program files\java\jre7\lib\tools.jar while variable configured @ c:\programs files\java\jdk1.7.0_17
any ideas?
download , install java jdk (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html) instead of jre.
once done may need change %java_home% environment variable. i'm not sure if jdk installer you.
the file tools.jar not included in jre it's "runtime environment" , not "development kit".
also, check values of class_path
, java_lib
ant may using them instead of java_home
.
Comments
Post a Comment