i was compiling my project and it did compile but when i', excute it says exceptionerror thread in main what this really mean? thanks
Joined: Dec 11, 2001
Please post the whole error message
Rom Chatterjee<BR>Sun Certified Java Programmer
Joined: Nov 24, 2001
I'd bet it says "Exception in thread main java.lang.NoSuchMethodError: main". What it means is that your program did not have a main method with the proper signature - like "public static void main(String [ ] args)". You want to learn to read these exceptions - they really point you to the solution. For example, when you run a console application, it MUST have a main method. That is the starting point for execution. If it does not have a main method that matches the signature (is named main and takes an array of Strings as the input argument), and even does not return nothing (void), it won't know where to start. The next part, "java.lang.NoSuchMethodError" tells you that the problem is in the java.lang package, and it couldn't find the method main (see it after the colon?). Hope this helps.