Check your build.gradle file and update the application block: application { // Define the main class for the application. // insert the entire name of the class mainClassName = 'packageName.MainClass' }