title: How to fix java.lang.RuntimeException: missing swagger input or config?
body: <p>I'm trying to generate java code from <code>swagger.json</code> using <code>swagger-codegen-cli.jar</code> but I get this exception:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.RuntimeException: missing swagger input or config!
          at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:763)
          at io.swagger.codegen.cmd.Generate.run(Generate.java:299)
          at io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:35)
  </code></pre>
  <p>The command I'm trying to run is the following:</p>
  <pre><code>java -jar swagger-codegen-cli.jar generate -i swagger.json -l java -c java-config.json -o api-client
  </code></pre>