Hi,
I am unable to launch application on android device (S4, version 4.4)
It displays error for Java-version
Logs:-
Starting Node Server
info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)
info: Appium REST http interface listener started on 127.0.0.1:4725
info: [debug] Non-default server args: {“address”:“127.0.0.1”,“port”:4725,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“19”,“automationName”:“Appium”}
info: Console LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“newCommandTimeout”:“600”,“platformName”:“Android”,“deviceName”:“Android”,“browserName”:“Windows”,“appActivity”:“com.telus.fieldforceonecom.telus.fieldforceone”,“appPackage”:“com.telus.fieldforceone”}}
error: Failed to start an Appium session, err was: Error: ‘java -version’ failed. Error: spawn ENOENT
info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)
info: [debug] Didn’t get app but did get Android package, will attempt to launch it on the device
info: [debug] Creating new appium session a71d1a25-4ca9-4390-9bb9-9424e701994f
info: Starting android appium
info: [debug] Getting Java version
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
info: [debug] Error: ‘java -version’ failed. Error: spawn ENOENT
at C:\Program Files (x86)\Appium\node_modules\appium\lib\devices\android\android-common.js:1032:17
at exithandler (child_process.js:633:7)
at ChildProcess.errorhandler (child_process.js:649:5)
at ChildProcess.EventEmitter.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:795:12)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: ‘java -version’ failed. Error: spawn ENOENT)”,“origValue”:“‘java -version’ failed. Error: spawn ENOENT”},“sessionId”:null}
info: ← POST /wd/hub/session 500 15.306 ms - 208
I have set JAVA_HOME for jdk 1.7 but it is showing java-version error
I am unable to launch any application on the device,Is there any way to resolve this?
Thanks
Ashwini