. Advertisement .
..3..
. Advertisement .
..4..
Recently, I ran some of my java code, and it gave the warning text:
Editor does not contain a main type
While searching, I realized that some people added some command lines in my sample above. But I don’t think it is the best way to correct the problem – editor does not contain a main type in eclipse
How would you explain this trouble? or Is there a better way?
Below is the detail of the command that I used:
public class Sample{
public static void main(String[] args){
System.out.println("YOLO");
}
}
The cause: Your folder is not identified as a Source folder.
Solution:
The problem is that your folder has not been identified as a Source Folder.