Here's another issue that took me a bit of time: The command line class path param doesn't behave as you'd expect. I'm on MacOS calling the CLI directly, and I'm including two jars in the call.
For example, both of these were confusing the tool about the name of the main class:
This one because the asterisk was causing it to parse the args incorrectly:
java -cp path/to/jars/* com.mypackage.Main
And this one because -- I'm not sure why:
java -cp "*.jar" com.mypackage.Main
This worked:
java -cp "path/to/jars/*" com.mypackage.Main
Listing the two jars explicitly also worked:
java -cp path/to/jars/jar1.jar:path/to/jars/jar2.jar com.mypackage.Main