Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.RuntimeException: Can't load config class with name ph.net.see.swaggercodegenmicronautgenerator.MicronautCodegen during runtime #4

Open
arpitvaish opened this issue Jul 23, 2021 · 0 comments

Comments

@arpitvaish
Copy link

arpitvaish commented Jul 23, 2021

Hi Team,

I am new trying to generate the code using swagger. I followed the steps on the home page and download both jar in home directory.
But getting run time error.

command used :

java -cp swagger-codegen-micronaut-generator-1.0.1.jar:swagger-codegen-cli-3.0.10.jar \
  io.swagger.codegen.v3.cli.SwaggerCodegen \
  generate \
  -l ph.net.see.swaggercodegenmicronautgenerator.MicronautCodegen \
  -i /Users/abc/Downloads/demo/src/main/resources/api-spec/Provider.yaml \
  -o /Users/abc/micronaut_projects

Exception in thread "main" java.lang.RuntimeException: Can't load config class with name ph.net.see.swaggercodegenmicronautgenerator.MicronautCodegen Available: aspnetcore
csharp
csharp-dotnet2
dynamic-html
html
html2
java
jaxrs-cxf-client
jaxrs-cxf
inflector
jaxrs-cxf-cdi
jaxrs-spec
jaxrs-jersey
jaxrs-di
jaxrs-resteasy-eap
jaxrs-resteasy
spring
nodejs-server
openapi
openapi-yaml
kotlin-client
kotlin-server
php
python
python-flask
scala
scala-akka-http-server
swift3
swift4
typescript-angular

    at io.swagger.codegen.v3.CodegenConfigLoader.forName(CodegenConfigLoader.java:31)
    at io.swagger.codegen.v3.cli.SwaggerCodegen.main(SwaggerCodegen.java:96)
Caused by: java.lang.ClassNotFoundException: ph.net.see.swaggercodegenmicronautgenerator.MicronautCodegen
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at io.swagger.codegen.v3.CodegenConfigLoader.forName(CodegenConfigLoader.java:29)
    ... 1 more



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant