{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/runbld/issues/33","repository_url":"https://api.github.com/repos/elastic/runbld","labels_url":"https://api.github.com/repos/elastic/runbld/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/elastic/runbld/issues/33/comments","events_url":"https://api.github.com/repos/elastic/runbld/issues/33/events","html_url":"https://github.com/elastic/runbld/issues/33","id":160937427,"number":33,"title":"Java discovery doesn't work on Windows","user":{"login":"drewr","id":6202,"avatar_url":"https://avatars.githubusercontent.com/u/6202?v=3","gravatar_id":"","url":"https://api.github.com/users/drewr","html_url":"https://github.com/drewr","followers_url":"https://api.github.com/users/drewr/followers","following_url":"https://api.github.com/users/drewr/following{/other_user}","gists_url":"https://api.github.com/users/drewr/gists{/gist_id}","starred_url":"https://api.github.com/users/drewr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewr/subscriptions","organizations_url":"https://api.github.com/users/drewr/orgs","repos_url":"https://api.github.com/users/drewr/repos","events_url":"https://api.github.com/users/drewr/events{/privacy}","received_events_url":"https://api.github.com/users/drewr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/runbld/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"drewr","id":6202,"avatar_url":"https://avatars.githubusercontent.com/u/6202?v=3","gravatar_id":"","url":"https://api.github.com/users/drewr","html_url":"https://github.com/drewr","followers_url":"https://api.github.com/users/drewr/followers","following_url":"https://api.github.com/users/drewr/following{/other_user}","gists_url":"https://api.github.com/users/drewr/gists{/gist_id}","starred_url":"https://api.github.com/users/drewr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewr/subscriptions","organizations_url":"https://api.github.com/users/drewr/orgs","repos_url":"https://api.github.com/users/drewr/repos","events_url":"https://api.github.com/users/drewr/events{/privacy}","received_events_url":"https://api.github.com/users/drewr/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-06-17T17:30:10Z","updated_at":"2016-06-23T20:08:01Z","closed_at":null,"body":"```\r\njava -jar \"C:\\Program Files\\runbld\\src\\runbld-0.99.41\\runbld\" C:\\Windows\\TEMP\\hudson7852076919719173061.sh \r\nException in thread \"main\" clojure.lang.ExceptionInfo: throw+: {:type :runbld.io/missing-file, :msg \"can't find C:\\\\Program Files\\\\Java\\\\jdk1.8.0_92\\\\bin\\\\java.exe\", :path \"C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Program Files\\\\Amazon\\\\cfn-bootstrap\\\\;C:\\\\ProgramData\\\\Chocolatey\\\\bin;C:\\\\Program Files\\\\Puppet Labs\\\\Puppet\\\\bin;C:\\\\Program Files\\\\Git\\\\cmd;C:\\\\Program Files\\\\Java\\\\jdk1.8.0_92\\\\bin;C:\\\\Program Files (x86)\\\\vim\\\\vim74;C:\\\\Program Files\\\\infra\\\\bin\"} {:type :runbld.io/missing-file, :msg \"can't find C:\\\\Program Files\\\\Java\\\\jdk1.8.0_92\\\\bin\\\\java.exe\", :path \"C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Program Files\\\\Amazon\\\\cfn-bootstrap\\\\;C:\\\\ProgramData\\\\Chocolatey\\\\bin;C:\\\\Program Files\\\\Puppet Labs\\\\Puppet\\\\bin;C:\\\\Program Files\\\\Git\\\\cmd;C:\\\\Program Files\\\\Java\\\\jdk1.8.0_92\\\\bin;C:\\\\Program Files (x86)\\\\vim\\\\vim74;C:\\\\Program Files\\\\infra\\\\bin\"}\r\n\tat runbld.io$which.invokeStatic(io.clj:93)\r\n\tat runbld.io$which.invoke(io.clj:89)\r\n\tat runbld.io$fn__1888$resolve_binary__1893$fn__1894.invoke(io.clj:109)\r\n\tat runbld.io$fn__1888$resolve_binary__1893.invoke(io.clj:107)\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/runbld/issues/comments/228168223","html_url":"https://github.com/elastic/runbld/issues/33#issuecomment-228168223","issue_url":"https://api.github.com/repos/elastic/runbld/issues/33","id":228168223,"user":{"login":"drewr","id":6202,"avatar_url":"https://avatars.githubusercontent.com/u/6202?v=3","gravatar_id":"","url":"https://api.github.com/users/drewr","html_url":"https://github.com/drewr","followers_url":"https://api.github.com/users/drewr/followers","following_url":"https://api.github.com/users/drewr/following{/other_user}","gists_url":"https://api.github.com/users/drewr/gists{/gist_id}","starred_url":"https://api.github.com/users/drewr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewr/subscriptions","organizations_url":"https://api.github.com/users/drewr/orgs","repos_url":"https://api.github.com/users/drewr/repos","events_url":"https://api.github.com/users/drewr/events{/privacy}","received_events_url":"https://api.github.com/users/drewr/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T20:08:01Z","updated_at":"2016-06-23T20:08:01Z","body":"Tracked it down. The real error is:\r\n\r\n```\r\n{:exit 2,\r\n :out \"\",\r\n :err \"ERROR: Invalid pattern is specified in \\\"path:pattern\\\".\\r\\n\"}\r\n```\r\n\r\nWhich matches `cmd.exe`:\r\n\r\n```\r\nC:\\Users\\vagrant>where.exe C:\\ProgramData\\Oracle\\Java\\javapath\\java.exe\r\nERROR: Invalid pattern is specified in \"path:pattern\".\r\n```\r\n\r\nThe problem is that we call `resolve-binary` multiple times in `runbld.java`, which works fine with `which(1)` but not `where.exe`."}}
{"actor":{"display_login":"drewr"}}