why i got this error??? Is my java installation wrong?


Exception in thread "main" java.lang.NoSuchMethodError:main
press any key to continue.............................

incorrect method signature for your main method usually.

just check this out.

syntax for main method should be.
public static void main(String args[])

Be careful its case sensitive.

check out whether your java file name matches to that of your class name conataining main.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.