Build failed for phantomjs

Hi, When trying to build my javascript application using gradle , it is failing with error
"A problem occurred starting process ‘command ‘phantomjs.cmd’’.
PhantomJs -version : 2.0.0
Gradle -version: 2.6
Groovy: 2.3.10
Ant: Apache Ant™ version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_60 (Oracle Corporation 25.60-b23)
OS: Windows 10 10.0 amd64

PhantomJs is installed and present in classpath. I am able to run phantomjs through command line.