Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19850

Gradle Jar It hasn't found the main class

$
0
0

Hi @ggeliso,

I am not sure what the concrete problem is, but here are some pointers that should help you:

  • Consider using the application instead of the plain java plugin. Then Gradle will do all the work of creating the manifest and packaging the application for you - https://docs.gradle.org/current/userguide/application_plugin.html
  • If you absolutely need to do something manually, you should use configurations.runtimeClasspath instead of configurations.runtime (runtime is deprecated and might not always be complete).

Viewing all articles
Browse latest Browse all 19850

Trending Articles