Posted on 2004-11-22
Hi guys - kinda wierd issue i'm having.
I have a java source file called Start.java in a folder called program (just in windows)
Start.java has like 8 or 9 classes in it plus one class called Start.java with the main( ) method.
I want all these class files to be part of a package called utilstuff
At the "beggining" of Start.java source code file i type (on the first line)
Now I compile it. In my program folder I see the Start.java file, and a folder calld utilstuff, with all my class files in it - just fine.
So compiles fine.
When i go to run it - it gives me an error
Exception in thread "main" java.lang.NoSuchMethodError: main
Press any key to continue...
Without the package statement it compiles and runs just fine.