Skip to content

Error during local testing could not find or load main class #239

@Dogacel

Description

@Dogacel

I was following the readme and did

> ./gradlew :protoc-gen-pbandk:protoc-gen-pbandk-jvm:assembleDist
> ./gradlew :protoc-gen-pbandk:protoc-gen-pbandk-jvm:installDist

and when I tried to run protoc it gave me the could not find or load main class pbandk.gen.MainKt error. The solution was:

  • ./gradlew :protoc-gen-pbandk:protoc-gen-pbandk-lib:build
  • Use java-8 rather than java-11

I am not sure which lead to the solution just opening the issue to guide others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions