@babu_shaik
> Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --platform-name Android --platform-version 21 --automation-name Appium --device-name “0123456789ABCDEF” --log-no-color
> info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
> info: Appium REST http interface listener started on 127.0.0.1:4723
> info: [debug] Non-default server args: {“address”:“127.0.0.1”,“logNoColors”:true,“deviceName”:“0123456789ABCDEF”,“platformName”:“Android”,“platformVersion”:“21”,“automationName”:“Appium”}
> info: Console LogLevel: debug
> info: --> POST /wd/hub/session {“desiredCapabilities”:{“appActivity”:“com.******.LoginActivity”,“appPackage”:“com.**",“browserName”:“Android”,“deviceName”:“0123456789ABCDEF”,“platformName”:“Android”,“resetkeyboard”:true,“unicodekeyboard”:true,“version”:“5.0”},“capabilities”:{“desiredCapabilities”:{“appActivity”:"com.”,“appPackage”:“com.******”,“browserName”:“Android”,“deviceName”:“0123456789ABCDEF”,“platformName”:“Android”,“resetkeyboard”:true,“unicodekeyboard”:true,“version”:“5.0”},“firstMatch”:[{“browserName”:“Android”,“platformName”:“android”}]}}
> info: Client User-Agent string: Apache-HttpClient/4.5.3 (Java/1.8.0_152)
> info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : resetkeyboard, unicodekeyboard, version
> 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 a2fd28bd-329a-40fc-a7e1-8bef892664cd
> info: Starting android appium
> info: [debug] Getting Java version
> info: [debug] Cleaning up android objects
> info: [debug] Cleaning up appium session
> error: Failed to start an Appium session, err was: Error: ‘java -version’ failed. Error: Command failed: C:\Windows\system32\cmd.exe /s /c “java -version”
> The system cannot find the path specified.
> java version “1.8.0_152”
> Java™ SE Runtime Environment (build 1.8.0_152-b16)
> Java HotSpot™ 64-Bit Server VM (build 25.152-b16, mixed mode)
>
> info: [debug] Error: ‘java -version’ failed. Error: Command failed: C:\Windows\system32\cmd.exe /s /c “java -version”
> The system cannot find the path specified.
> java version “1.8.0_152”
> Java™ SE Runtime Environment (build 1.8.0_152-b16)
> Java HotSpot™ 64-Bit Server VM (build 25.152-b16, mixed mode)
>
> at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\lib\devices\android\android-common.js:1057:17)
> at ChildProcess.exithandler (child_process.js:758:5)
> at ChildProcess.emit (events.js:110:17)
> at maybeClose (child_process.js:1016:16)
> at Socket. (child_process.js:1184:11)
> at Socket.emit (events.js:107:17)
> at Pipe.close (net.js:484:11)
> info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: ‘java -version’ failed. Error: Command failed: C:\Windows\system32\cmd.exe /s /c “java -version”\nThe system cannot find the path specified.\r\njava version “1.8.0_152”\r\nJava™ SE Runtime Environment (build 1.8.0_152-b16)\r\nJava HotSpot™ 64-Bit Server VM (build 25.152-b16, mixed mode)\r\n)”,“origValue”:"‘java -version’ failed. Error: Command failed: C:\Windows\system32\cmd.exe /s /c “java -version”\nThe system cannot find the path specified.\r\njava version “1.8.0_152”\r\nJava™ SE Runtime Environment (build 1.8.0_152-b16)\r\nJava HotSpot™ 64-Bit Server VM (build 25.152-b16, mixed mode)\r\n"},“sessionId”:null}
> info: <-- POST /wd/hub/session 500 508.504 ms - 730