{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5564","labels_url":"https://api.github.com/repos/appium/appium/issues/5564/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5564/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5564/events","html_url":"https://github.com/appium/appium/issues/5564","id":104851492,"number":5564,"title":" 'java -version' failed. Error: spawn ENOENT","user":{"login":"canb0","id":13525544,"avatar_url":"https://avatars.githubusercontent.com/u/13525544?v=3","gravatar_id":"","url":"https://api.github.com/users/canb0","html_url":"https://github.com/canb0","followers_url":"https://api.github.com/users/canb0/followers","following_url":"https://api.github.com/users/canb0/following{/other_user}","gists_url":"https://api.github.com/users/canb0/gists{/gist_id}","starred_url":"https://api.github.com/users/canb0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canb0/subscriptions","organizations_url":"https://api.github.com/users/canb0/orgs","repos_url":"https://api.github.com/users/canb0/repos","events_url":"https://api.github.com/users/canb0/events{/privacy}","received_events_url":"https://api.github.com/users/canb0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-04T08:45:57Z","updated_at":"2015-09-04T13:02:56Z","closed_at":null,"body":"I encounter a problem while executing my appium test.\r\n\r\nat C:\\Canberk\\Appium\\node_modules\\appium\\lib\\devices\\android\\android-common.js:1033:17\r\nat exithandler (child_process.js:633:7)\r\nat ChildProcess.errorhandler (child_process.js:649:5)\r\nat ChildProcess.EventEmitter.emit (events.js:95:17)\r\nat Process.ChildProcess._handle.onexit (child_process.js:795:12)\r\ninfo: [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}\r\ninfo: <-- POST /wd/hub/session 500 210.506 ms - 208 \r\n.\r\nWhen I run \"java -version\" in command line there's no problem but when I execute cmd.exe /s /c \"java -version\" I got an error. I have JAVA_HOME in my PATH variable. How can I debug this problem.\r\n\r\n\"Specified path cannot be found\" (sorry for mistranslation) is captured at the 1st line\r\nI am using Windows 8.1 \r\n\r\n![command](https://cloud.githubusercontent.com/assets/13525544/9679813/7d9266be-52fa-11e5-8cd3-e46804a91f8f.png)\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/137730020","html_url":"https://github.com/appium/appium/issues/5564#issuecomment-137730020","issue_url":"https://api.github.com/repos/appium/appium/issues/5564","id":137730020,"user":{"login":"rets5s","id":3340459,"avatar_url":"https://avatars.githubusercontent.com/u/3340459?v=3","gravatar_id":"","url":"https://api.github.com/users/rets5s","html_url":"https://github.com/rets5s","followers_url":"https://api.github.com/users/rets5s/followers","following_url":"https://api.github.com/users/rets5s/following{/other_user}","gists_url":"https://api.github.com/users/rets5s/gists{/gist_id}","starred_url":"https://api.github.com/users/rets5s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rets5s/subscriptions","organizations_url":"https://api.github.com/users/rets5s/orgs","repos_url":"https://api.github.com/users/rets5s/repos","events_url":"https://api.github.com/users/rets5s/events{/privacy}","received_events_url":"https://api.github.com/users/rets5s/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T13:02:56Z","updated_at":"2015-09-04T13:02:56Z","body":"What path value did you set for JAVA_HOME?"}}