{"action":"created","issue":{"url":"https://api.github.com/repos/google/battery-historian/issues/35","labels_url":"https://api.github.com/repos/google/battery-historian/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/google/battery-historian/issues/35/comments","events_url":"https://api.github.com/repos/google/battery-historian/issues/35/events","html_url":"https://github.com/google/battery-historian/issues/35","id":109592775,"number":35,"title":"Battery Historian - Setup Issue","user":{"login":"farhan-arbisoft","id":9193030,"avatar_url":"https://avatars.githubusercontent.com/u/9193030?v=3","gravatar_id":"","url":"https://api.github.com/users/farhan-arbisoft","html_url":"https://github.com/farhan-arbisoft","followers_url":"https://api.github.com/users/farhan-arbisoft/followers","following_url":"https://api.github.com/users/farhan-arbisoft/following{/other_user}","gists_url":"https://api.github.com/users/farhan-arbisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/farhan-arbisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farhan-arbisoft/subscriptions","organizations_url":"https://api.github.com/users/farhan-arbisoft/orgs","repos_url":"https://api.github.com/users/farhan-arbisoft/repos","events_url":"https://api.github.com/users/farhan-arbisoft/events{/privacy}","received_events_url":"https://api.github.com/users/farhan-arbisoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-03T00:19:22Z","updated_at":"2015-10-03T06:25:47Z","closed_at":null,"body":"When i run following command on my windows machine (OS Windows 10) given in setup.\r\n\r\n// Compile Javascript files using the Closure compiler\r\n$ bash setup.sh\r\n\r\nIt gives the following result and i am unable to do a proper setup for battery historian.\r\nC:\\Users\\USERNAME\\go_work\\src\\github.com\\google\\battery-historian>bash setup.sh\r\nsetup.sh: line 58: java: command not found\r\n\r\nI tried the mentioned line command into command prompt directly but didn't work either.\r\n\r\nCommand given on line 58 is:\r\njava -jar third_party/closure-compiler/compiler.jar --closure_entry_point historian.Historian \\\r\n      --js js/*.js \\\r\n      --js third_party/closure-library/closure/goog/base.js \\\r\n      --js third_party/closure-library/closure/goog/** \\\r\n      --only_closure_dependencies \\\r\n      --generate_exports \\\r\n      --js_output_file compiled/historian-optimized.js \\\r\n      --compilation_level SIMPLE_OPTIMIZATIONS\r\n\r\n\r\nIf someone can help me in fixing it, it would be great.\r\nNeed this tool in urgent."},"comment":{"url":"https://api.github.com/repos/google/battery-historian/issues/comments/145209660","html_url":"https://github.com/google/battery-historian/issues/35#issuecomment-145209660","issue_url":"https://api.github.com/repos/google/battery-historian/issues/35","id":145209660,"user":{"login":"ph0b","id":827051,"avatar_url":"https://avatars.githubusercontent.com/u/827051?v=3","gravatar_id":"","url":"https://api.github.com/users/ph0b","html_url":"https://github.com/ph0b","followers_url":"https://api.github.com/users/ph0b/followers","following_url":"https://api.github.com/users/ph0b/following{/other_user}","gists_url":"https://api.github.com/users/ph0b/gists{/gist_id}","starred_url":"https://api.github.com/users/ph0b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ph0b/subscriptions","organizations_url":"https://api.github.com/users/ph0b/orgs","repos_url":"https://api.github.com/users/ph0b/repos","events_url":"https://api.github.com/users/ph0b/events{/privacy}","received_events_url":"https://api.github.com/users/ph0b/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T06:25:47Z","updated_at":"2015-10-03T06:25:47Z","body":"Hi, \r\n\r\nYou need to have Java installed and java.exe added to your PATH environment variable (or use it by specifying its absolute path).\r\n\r\nI think you should use backslashes for the call to Java too:\r\n\r\njava -jar third_party\\closure-compiler\\compiler.jar --closure_entry_point historian.Historian --js js\\*.js --js third_party\\closure-library\\closure\\goog\\base.js --js third_party\\closure-library\\closure\\goog\\** --only_closure_dependencies --generate_exports --js_output_file compiled\\historian-optimized.js --compilation_level SIMPLE_OPTIMIZATIONS\r\n\r\nI've written a more detailed guide on installing battery historian on Windows, you can find it here: http://ph0b.com/battery-historian-2-0-windows/"}}