{"action":"created","issue":{"url":"https://api.github.com/repos/frida/frida-node/issues/2","labels_url":"https://api.github.com/repos/frida/frida-node/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/frida/frida-node/issues/2/comments","events_url":"https://api.github.com/repos/frida/frida-node/issues/2/events","html_url":"https://github.com/frida/frida-node/issues/2","id":69424559,"number":2,"title":"spawn java.exe on Windows not working","user":{"login":"rgl","id":43356,"avatar_url":"https://avatars.githubusercontent.com/u/43356?v=3","gravatar_id":"","url":"https://api.github.com/users/rgl","html_url":"https://github.com/rgl","followers_url":"https://api.github.com/users/rgl/followers","following_url":"https://api.github.com/users/rgl/following{/other_user}","gists_url":"https://api.github.com/users/rgl/gists{/gist_id}","starred_url":"https://api.github.com/users/rgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgl/subscriptions","organizations_url":"https://api.github.com/users/rgl/orgs","repos_url":"https://api.github.com/users/rgl/repos","events_url":"https://api.github.com/users/rgl/events{/privacy}","received_events_url":"https://api.github.com/users/rgl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-19T13:23:02Z","updated_at":"2015-04-19T13:41:20Z","closed_at":null,"body":"I'm trying to spawn a java application on Windows, but its not working even with an hello world created like:\r\n\r\n```\r\n  cat<<\"EOF\"> Program.java\r\npublic class Program {\r\n  public static void main(String[] args) {\r\n    System.out.println(\"Hello, World\");\r\n  }\r\n}\r\nEOF\r\n\r\n  javac Program.java\r\n  jar -cfe Program.jar Program Program.class\r\n  java -jar Program.jar\r\n```\r\n\r\nThe node script is:\r\n\r\n```javascript\r\nvar frida = require(\"frida\");\r\nvar which = require(\"which\");\r\n\r\nconst JAVA_PATH = which.sync(\"java\");\r\n\r\nfrida\r\n  .spawn([JAVA_PATH, \"-jar\", \"Program.jar\"])\r\n  .then(function(pid) {\r\n    console.log('spawned:', pid);\r\n    // This is where you could attach (see below) and instrument APIs before you call resume()\r\n    return frida.resume(pid);\r\n  })\r\n  .then(function() {\r\n    console.log('resumed');\r\n  })\r\n  .catch(function(error) {\r\n    console.log('error:', error.message);\r\n  });\r\n```\r\n\r\nIt will error out with:\r\n\r\n```\r\nspawned: 5784\r\nresumed\r\nError: Could not find or load main class '-jar'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/frida/frida-node/issues/comments/94278126","html_url":"https://github.com/frida/frida-node/issues/2#issuecomment-94278126","issue_url":"https://api.github.com/repos/frida/frida-node/issues/2","id":94278126,"user":{"login":"oleavr","id":735197,"avatar_url":"https://avatars.githubusercontent.com/u/735197?v=3","gravatar_id":"","url":"https://api.github.com/users/oleavr","html_url":"https://github.com/oleavr","followers_url":"https://api.github.com/users/oleavr/followers","following_url":"https://api.github.com/users/oleavr/following{/other_user}","gists_url":"https://api.github.com/users/oleavr/gists{/gist_id}","starred_url":"https://api.github.com/users/oleavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleavr/subscriptions","organizations_url":"https://api.github.com/users/oleavr/orgs","repos_url":"https://api.github.com/users/oleavr/repos","events_url":"https://api.github.com/users/oleavr/events{/privacy}","received_events_url":"https://api.github.com/users/oleavr/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T13:41:20Z","updated_at":"2015-04-19T13:41:20Z","body":"Ok! I wonder if there's something wrong with how we construct the argument list."}}