{"action":"created","issue":{"url":"https://api.github.com/repos/codenvy/codenvy/issues/693","repository_url":"https://api.github.com/repos/codenvy/codenvy","labels_url":"https://api.github.com/repos/codenvy/codenvy/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/codenvy/codenvy/issues/693/comments","events_url":"https://api.github.com/repos/codenvy/codenvy/issues/693/events","html_url":"https://github.com/codenvy/codenvy/issues/693","id":175381749,"number":693,"title":"[Java] NoClassDefFoundError","user":{"login":"MPNull","id":7377310,"avatar_url":"https://avatars.githubusercontent.com/u/7377310?v=3","gravatar_id":"","url":"https://api.github.com/users/MPNull","html_url":"https://github.com/MPNull","followers_url":"https://api.github.com/users/MPNull/followers","following_url":"https://api.github.com/users/MPNull/following{/other_user}","gists_url":"https://api.github.com/users/MPNull/gists{/gist_id}","starred_url":"https://api.github.com/users/MPNull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MPNull/subscriptions","organizations_url":"https://api.github.com/users/MPNull/orgs","repos_url":"https://api.github.com/users/MPNull/repos","events_url":"https://api.github.com/users/MPNull/events{/privacy}","received_events_url":"https://api.github.com/users/MPNull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-07T00:09:04Z","updated_at":"2016-09-07T20:49:03Z","closed_at":null,"body":"> Exception in thread \"main\" java.lang.NoClassDefFoundError: org/json/JSONObject\r\n\r\nI am wondering why it is so hard to make a Maven projects work fine with external JAR libraries. I've added the needed information to pom.xml. The project will download all of the required dependencies and also IDE doesn't mark the imported packages or syntax markups as invalid.\r\n\r\n```\r\n    <dependencies>\r\n        <dependency>\r\n            <groupId>junit</groupId>\r\n            <artifactId>junit</artifactId>\r\n            <version>3.8.1</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n        <!-- https://mvnrepository.com/artifact/org.json/json -->\r\n        <dependency>\r\n            <groupId>org.json</groupId>\r\n            <artifactId>json</artifactId>\r\n            <version>20160810</version>\r\n        </dependency>\r\n        <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->\r\n        <dependency>\r\n            <groupId>com.googlecode.json-simple</groupId>\r\n            <artifactId>json-simple</artifactId>\r\n            <version>1.1.1</version>\r\n        </dependency>\r\n    </dependencies>\r\n```\r\n\r\nI am trying to use org.json and org.json.simple, but it doesn't matter how ever I am trying to import it. I've read around the internet about this error, but it doesn't make any sense for me. I was so excited about it that I don't need to configure something \"hard\" what I don't understand, but now I have to. Normally I use Eclipse on PC, but when I'm not at home it would be awesome to code something at somewhere without installing the stuff on the PC I'm using.\r\n\r\n> In Codenvy, build and run processes take place on different nodes and different environments. This project produces /repo with quite a few jars and a startup script that is impossible to inject into a Docker container (Codenvy runners are Docker based). Thus, I recommend performing build and run in the same environment, i.e. in the runtime. What you need to do is create a new runner (the button is on the runner panel), install Maven there, perform build and execute startup script. You will also have to unbind the service from localhost -kalrsson from StackOverflow\r\n\r\nSo basically what can I do? I really would like to use Codenvy of course."},"comment":{"url":"https://api.github.com/repos/codenvy/codenvy/issues/comments/245414173","html_url":"https://github.com/codenvy/codenvy/issues/693#issuecomment-245414173","issue_url":"https://api.github.com/repos/codenvy/codenvy/issues/693","id":245414173,"user":{"login":"MPNull","id":7377310,"avatar_url":"https://avatars.githubusercontent.com/u/7377310?v=3","gravatar_id":"","url":"https://api.github.com/users/MPNull","html_url":"https://github.com/MPNull","followers_url":"https://api.github.com/users/MPNull/followers","following_url":"https://api.github.com/users/MPNull/following{/other_user}","gists_url":"https://api.github.com/users/MPNull/gists{/gist_id}","starred_url":"https://api.github.com/users/MPNull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MPNull/subscriptions","organizations_url":"https://api.github.com/users/MPNull/orgs","repos_url":"https://api.github.com/users/MPNull/repos","events_url":"https://api.github.com/users/MPNull/events{/privacy}","received_events_url":"https://api.github.com/users/MPNull/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T20:49:02Z","updated_at":"2016-09-07T20:49:02Z","body":"Downloaded it: https://www.dropbox.com/s/ogjph2o8h4scfkg/auctioneer.zip?dl=0\r\nI found sharing option, but it wants me to specify e-mail addresses to share with."}}
{"actor":{"display_login":"MPNull"}}