{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/3872","labels_url":"https://api.github.com/repos/neovim/neovim/issues/3872/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3872/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/3872/events","html_url":"https://github.com/neovim/neovim/issues/3872","id":123158786,"number":3872,"title":"why I can not use jobstart with java?","user":{"login":"wsdjeg","id":13142418,"avatar_url":"https://avatars.githubusercontent.com/u/13142418?v=3","gravatar_id":"","url":"https://api.github.com/users/wsdjeg","html_url":"https://github.com/wsdjeg","followers_url":"https://api.github.com/users/wsdjeg/followers","following_url":"https://api.github.com/users/wsdjeg/following{/other_user}","gists_url":"https://api.github.com/users/wsdjeg/gists{/gist_id}","starred_url":"https://api.github.com/users/wsdjeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsdjeg/subscriptions","organizations_url":"https://api.github.com/users/wsdjeg/orgs","repos_url":"https://api.github.com/users/wsdjeg/repos","events_url":"https://api.github.com/users/wsdjeg/events{/privacy}","received_events_url":"https://api.github.com/users/wsdjeg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-20T13:02:55Z","updated_at":"2015-12-20T16:44:44Z","closed_at":"2015-12-20T16:39:14Z","body":"here is my Foo.java\r\n```java\r\npublic class Foo{\r\n    public static void main(String[] args){\r\n    System.out.println(\"helloworld\");\r\n    }\r\n}\r\n```\r\nI hava compile my java file \r\n\r\njob.vim\r\n\r\n```vim\r\nlet s:save_cpo = &cpo\r\nset cpo&vim\r\n\r\nfunction! s:JobHandler(job_id,data,event) abort\r\n      if a:event == 'stdout'\r\n        let str = self.shell.' stdout: '.join(a:data)\r\n      elseif a:event == 'stderr'\r\n        let str = self.shell.' stderr: '.join(a:data)\r\n      else\r\n        let str = self.shell.' exited'\r\n      endif\r\n      echo str\r\nendfunction\r\n\r\nlet s:callbacks = {\r\n            \\ 'on_stdout': function('s:JobHandler'),\r\n            \\ 'on_stderr': function('s:JobHandler'),\r\n            \\ 'on_exit': function('s:JobHandler')\r\n            \\ }\r\n\r\nlet job2 = jobstart(['java','-cp','/home/wsdjeg/.vim/bundle/Mysql.vim','Foo'], extend({'shell': 'shell 1'}, s:callbacks))\r\n\r\nlet &cpo = s:save_cpo\r\nunlet s:save_cpo\r\n\r\n```\r\n\r\nvim -u NONE -S job.vim only show me  shell 1 exit"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/166134478","html_url":"https://github.com/neovim/neovim/issues/3872#issuecomment-166134478","issue_url":"https://api.github.com/repos/neovim/neovim/issues/3872","id":166134478,"user":{"login":"wsdjeg","id":13142418,"avatar_url":"https://avatars.githubusercontent.com/u/13142418?v=3","gravatar_id":"","url":"https://api.github.com/users/wsdjeg","html_url":"https://github.com/wsdjeg","followers_url":"https://api.github.com/users/wsdjeg/followers","following_url":"https://api.github.com/users/wsdjeg/following{/other_user}","gists_url":"https://api.github.com/users/wsdjeg/gists{/gist_id}","starred_url":"https://api.github.com/users/wsdjeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsdjeg/subscriptions","organizations_url":"https://api.github.com/users/wsdjeg/orgs","repos_url":"https://api.github.com/users/wsdjeg/repos","events_url":"https://api.github.com/users/wsdjeg/events{/privacy}","received_events_url":"https://api.github.com/users/wsdjeg/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T16:44:44Z","updated_at":"2015-12-20T16:44:44Z","body":"sorry :msg show me \r\n```\r\nMessages maintainer: Bram Moolenaar <Bram@vim.org>\r\n\"autoload/mysqlvim/job.vim\" 23L, 667C\r\n stdout: helloworld\r\n exited\r\n```"}}