hi, I am having problem with the code below,I am able to complie the code,but I am unable to run this.
I am gettign the following error -- In class AccessInTopLevelClass: void main(String argv) is not defined
can anyone tell me whats going on and help me with this?
thanks, bani [ May 09, 2002: Message edited by: Marilyn deQueiroz ]
posted 13 years ago
In class AccessInTopLevelClass: void main(String argv) is not defined This is a clever cipher which conceals the fact that the method void main(String argv) is not defined in class AccessInTopLevelClass. ! Looking at your code, you do have a main() method, but looking at the parentheses it's actually in AccessInTopLevelClass.NestedTopLevelClass.NestedTopLevelClass1 - a doubly-nested static member class. This is not the same as AccessInTopLevelClass. When you type "java AccessInTopLevelClass", you're telling the JVM to look in that class for a main method. If it can't be found, you can't run your program.