Hi all,
I am new to Java, I have written a small Java program; as far as my knowledge the program seems to be alright. When I compile the program, it compiles without any complain. However, when I try to run it, from OS command prompt, I get the following error message:
bash-2.03$ javac CountSession.java
bash-2.03$ java CountSession
Exception in thread "main" java.lang.NoSuchMethodError: main
bash-2.03$
Any inputs, comments and suggestions will be greately appreciated.
Thanks and regards.