I am using windows 8 java installed in Program files. I am getting such error "Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre1.8.0_40\lib\tools.jar"
After creating 2 system variables as"JAVA_HOME" with the path 'C:\Program Files\Java\jdk1.8.0_40' and "ANT_HOME" with the path 'D:\Software\apache-ant-1.9.4'. Then, I set the path variable to %JAVA_HOME%\bin;
and ant variable to %ANT_HOME%\bin.
Still getting the same error as "Unable to locate tools.jar".
Also, I have tried by copy/pasting tools.jar from JDK lib to JRE lib folder. but had no luck. Getting the same error