Can I run a program in Java without main class?
I installed JAVA in my PC. I have set all the necessary paths. But when I run any program, I get an error message saying could not find or load main method. Why?