When tried to execute test scripts for appium getting this error message :- org.openqa.selenium.SessionNotCreatedException: A new session could not be created

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: ‘java -version’ failed. Error: spawn ENOENT) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 171 milliseconds
Build info: version: ‘2.42.2’, revision: ‘6a6995d’, time: ‘2014-06-03 17:42:30’
System info: host: ‘toobler-PC’, ip: ‘192.168.2.29’, os.name: ‘Windows 7’, os.arch: ‘x86’, os.version: ‘6.1’, java.version: ‘1.7.0_45’
Driver info: io.appium.java_client.android.AndroidDriver
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: ‘java -version’ failed. Error: spawn ENOENT) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 171 milliseconds
Build info: version: ‘2.42.2’, revision: ‘6a6995d’, time: ‘2014-06-03 17:42:30’
System info: host: ‘toobler-PC’, ip: ‘192.168.2.29’, os.name: ‘Windows 7’, os.arch: ‘x86’, os.version: ‘6.1’, java.version: ‘1.7.0_45’
Driver info: io.appium.java_client.android.AndroidDriver

Hello @geethu,

Did you add java to the path?

Hello,
Facing same issue added java & Sdk to the path able to check on command prompt.
please suggest if you have some solutions

thanks