When you specify a main class that is found in a jar file, get an error > No main class specified This seems to happen because the findMainClass call happens before compile time dependencies are resolved. It should happen after.