could not find or load main class intellij code example
Example 1: Error: Could not find or load main class mina.calc.MinaCalculator in module mina
//You must change your class name
Example 2: > 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'
}