{"action":"created","issue":{"url":"https://api.github.com/repos/plasma-umass/doppio/issues/461","repository_url":"https://api.github.com/repos/plasma-umass/doppio","labels_url":"https://api.github.com/repos/plasma-umass/doppio/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/plasma-umass/doppio/issues/461/comments","events_url":"https://api.github.com/repos/plasma-umass/doppio/issues/461/events","html_url":"https://github.com/plasma-umass/doppio/issues/461","id":158116843,"number":461,"title":"Error running scala code","user":{"login":"ashishtara","id":19681374,"avatar_url":"https://avatars.githubusercontent.com/u/19681374?v=3","gravatar_id":"","url":"https://api.github.com/users/ashishtara","html_url":"https://github.com/ashishtara","followers_url":"https://api.github.com/users/ashishtara/followers","following_url":"https://api.github.com/users/ashishtara/following{/other_user}","gists_url":"https://api.github.com/users/ashishtara/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishtara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishtara/subscriptions","organizations_url":"https://api.github.com/users/ashishtara/orgs","repos_url":"https://api.github.com/users/ashishtara/repos","events_url":"https://api.github.com/users/ashishtara/events{/privacy}","received_events_url":"https://api.github.com/users/ashishtara/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/plasma-umass/doppio/labels/question","name":"question","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-02T11:16:31Z","updated_at":"2016-06-03T07:40:22Z","closed_at":null,"body":"I'm trying to run a jar (sworld.jar, attached) which I created from scala. I'm able to run it from java with the following command -\r\njava -cp scala-library.jar;sworld.jar sworld.HelloWorld\r\n\r\nBut trying the same thing in Doppio gives the error \"Could not find or load main class sworld.HelloWorld\". The same error occurs in both the browser as well as the CLI version.\r\n\r\nDo I need to have a different mechanism for running jars containing scala code? (A similar hello world sample written in java works fine). Here's the code I tried in the browser version (both scala-library.jar and sworld.jar are placed parallel to the classes and vendor folders) -\r\n\r\nnew Doppio.VM.JVM({\r\n  doppioHomePath: '/sys',\r\n  javaHomePath: '/sys/vendor/java_home',\r\n  classpath: ['/sys/classes', '/sys/scala-library.jar', '/sys/sworld.jar']\r\n}, function(err, jvm) {\r\n  jvm.runClass('sworld.HelloWorld', [''], function(exitCode) {\r\n  });\r\n});\r\n\r\n\r\n[sworld.zip](https://github.com/plasma-umass/doppio/files/295428/sworld.zip)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/plasma-umass/doppio/issues/comments/223512206","html_url":"https://github.com/plasma-umass/doppio/issues/461#issuecomment-223512206","issue_url":"https://api.github.com/repos/plasma-umass/doppio/issues/461","id":223512206,"user":{"login":"ashishtara","id":19681374,"avatar_url":"https://avatars.githubusercontent.com/u/19681374?v=3","gravatar_id":"","url":"https://api.github.com/users/ashishtara","html_url":"https://github.com/ashishtara","followers_url":"https://api.github.com/users/ashishtara/followers","following_url":"https://api.github.com/users/ashishtara/following{/other_user}","gists_url":"https://api.github.com/users/ashishtara/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishtara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishtara/subscriptions","organizations_url":"https://api.github.com/users/ashishtara/orgs","repos_url":"https://api.github.com/users/ashishtara/repos","events_url":"https://api.github.com/users/ashishtara/events{/privacy}","received_events_url":"https://api.github.com/users/ashishtara/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T07:40:22Z","updated_at":"2016-06-03T07:40:22Z","body":"Found it - I had not regenerated listings.json after adding the new jars (sworld and scala-library) - placed in /sys. Regenerating listings.json fixes the problem. Thanks!"}}
{"actor":{"display_login":"ashishtara"}}