Hi guys,
I'm new in Java and I install last hour the program called "Eclipse"
In my first little program, when I execute it, there's a window that shows me
the message "Editor does not contain a main type".
What's the cause of this message?
Thanks!
Printable View
Hi guys,
I'm new in Java and I install last hour the program called "Eclipse"
In my first little program, when I execute it, there's a window that shows me
the message "Editor does not contain a main type".
What's the cause of this message?
Thanks!
check whether in ur program main() fuction is available or not..
and check spelling,syntax like below code....
public class Sample{
public static void main(String[] args) {
System.out.println("main called");
}
}
Yes, as subashm says in your Java class main method is not implemented. So you cannot run a Java class without a main method. Hope you get that error at run time, not at compile time.