I have got the following code in a file called test.java which is located inside the directory C:\\D\\JavaProjects
class test { public static void ma
use public (then class name).... that will definetely work....