{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1566","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1566/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1566/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1566/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1566","id":116628382,"number":1566,"title":"Error creating custom server generator","user":{"login":"mm-gmbd","id":3329824,"avatar_url":"https://avatars.githubusercontent.com/u/3329824?v=3","gravatar_id":"","url":"https://api.github.com/users/mm-gmbd","html_url":"https://github.com/mm-gmbd","followers_url":"https://api.github.com/users/mm-gmbd/followers","following_url":"https://api.github.com/users/mm-gmbd/following{/other_user}","gists_url":"https://api.github.com/users/mm-gmbd/gists{/gist_id}","starred_url":"https://api.github.com/users/mm-gmbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mm-gmbd/subscriptions","organizations_url":"https://api.github.com/users/mm-gmbd/orgs","repos_url":"https://api.github.com/users/mm-gmbd/repos","events_url":"https://api.github.com/users/mm-gmbd/events{/privacy}","received_events_url":"https://api.github.com/users/mm-gmbd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-11-12T19:59:44Z","updated_at":"2015-12-30T07:03:26Z","closed_at":"2015-12-30T07:03:25Z","body":"So, I've successfully compiled a new jar, but when I run the following command (as stated in the readme):\r\n\r\n    java -cp /path/to/swagger-codegen-distribution:/path/to/your/jar io.swagger.codegen.Codegen\r\n\r\nI receive the following error:\r\n\r\n    Error: Could not find or load main class io.swagger.codegen.Codegen\r\n\r\nHere is the directory structure:\r\n\r\n    + swagger-codegen\r\n      + bin\r\n      + modules\r\n        + swagger-codegen\r\n        + swagger-codegen-cli <- Is this the \"/path/to/swagger-codegen-distribution\"\r\n        + swagger-codegen-maven-plugin\r\n        + swagger-generator\r\n      + output\r\n        +myLibrary <- Current directory\r\n          + src\r\n          + target <- This is where the .jar is located\r\n\r\nThe readme, as it pertains to this step, could be made a little more clear. First, some of the questions I have:\r\n\r\n- Is `/path/to/your/jar` the path **including** the .jar file itself, or just the path to the containing directory?\r\n- What is `/path/to/swagger-codegen-distribution/`? Right now, I believe this is the directory `swagger-codegen/modules/swagger-codegen-cli`, but something more clear would be helpful. Also, is it asking for a path to a directory or to an actual .jar?\r\n\r\nHere is the command that I am using (based on my \"Current directory\" as shown above):\r\n\r\n    java -cp ../../modules/swagger-codegen-cli:target/myServerCodegen-swagger-codegen-1.0.0 io.swagger.codegen.Codegen\r\n    Error: Could not find or load man class io.swagger.codegen.Codegen\r\n\r\nThanks in advance."}}