Answers for "> Task :run FAILED Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException:"

1

> Task :run FAILED Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException:

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'
}
Posted by: Guest on October-15-2020

Code answers related to "> Task :run FAILED Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException:"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language