Hi Dan, We use Bazel to compile our Flink applications. We're using "rules_scala" ( https://github.com/bazelbuild/rules_scala) to manage the dependencies and produce jars. We haven't had any issues. However, I have found that sometimes it's difficult to figure out exactly what Flink target or dependency my application needs.
Unfortunately I'm not sure what issue you're seeing here. I would guess either your flink application wasn't compiled into the jar you're executing. If you can paste the bazel target used to generate your jar and how you're launching the application, that will be helpful for diagnosis. On Thu, Jun 11, 2020 at 5:21 PM Dan Hill <quietgol...@gmail.com> wrote: > I took the Flink playground and I'm trying to swap out Maven for Bazel. I > got to the point where I'm hitting the following error. I want to diff my > code with an existing, working setup. > > Thanks! - Dan > > > client_1 | > org.apache.flink.client.program.ProgramInvocationException: > Neither a 'Main-Class', nor a 'program-class' entry was found in the jar > file. > > client_1 | at > org.apache.flink.client.program.PackagedProgram.getEntryPointClassNameFromJar(PackagedProgram.java:596) > > client_1 | at > org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:190) > > client_1 | at > org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:128) > > client_1 | at > org.apache.flink.client.cli.CliFrontend.buildProgram(CliFrontend.java:862) > > client_1 | at > org.apache.flink.client.cli.CliFrontend.run(CliFrontend.java:204) > > client_1 | at > org.apache.flink.client.cli.CliFrontend.parseParameters(CliFrontend.java:1050) > > client_1 | at > org.apache.flink.client.cli.CliFrontend.lambda$main$11(CliFrontend.java:1126) > > client_1 | at > org.apache.flink.runtime.security.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:30) > > client_1 | at > org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1126) >