Why run Java classes in the command prompt prompt said unable to load the main class
CodePudding user response:
Question is ambiguous, it is ClassNotFound error or said can't find the main method? If the former, the need to use the class is added to the classpath, if the latter, add one main method in your class