Such errors are given, if the class is a driver class or it doesnt have a main method. Does your class contains the main method or when you are invoking the classes from the Driver program are you doing the instantiations properly?
Ben,
--Lost in preparation of SCJP and SCWCD--
"Start writing a new chapter, for if you live by the book you'll never make history." (Ben Sobel)
acutally the problem is on the classpath that is the JVM cant able to find the class before compling any java program you have to set classpath for the JVM in dos console
the command is c:>set classpath=%classpath%;.;
after giving this and type javac filename.java and run the java command
Originally posted by Arun Gokul: acutally the problem is on the classpath that is the JVM cant able to find the class before compling any java program you have to set classpath for the JVM in dos console
the command is c:>set classpath=%classpath%;.;
after giving this and type javac filename.java and run the java command