“Erreur: je n'ai pas pu trouver ou charger le PC de classe principale” Réponses codées

> Tâche: Exécutez l'erreur échouée: n'a pas pu trouver ou charger la classe principale causée par: 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'
}
UnAngeloCheSiChiamaTheKing

Erreur: je n'ai pas pu trouver ou charger le PC de classe principale

The main() method is required to run/execute programs developed in the Java programming language since it is where the program execution begins. When starting a Java program, you could encounter the warning “error: Could not find or load main class.” You’re having this problem because you’re using the java command to run main() from within the class.
Frail Ferret

Réponses similaires à “Erreur: je n'ai pas pu trouver ou charger le PC de classe principale”

Questions similaires à “Erreur: je n'ai pas pu trouver ou charger le PC de classe principale”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code