Originally posted by george zhao: ... "." means current folder, does it? ...
Yes. Without that, the JVM would look for the class in each of the paths listed in the classpath, and when it can't find it, it would throw a NoClassDefFoundError. See How classes are found in the Java documentation.
Both -cp and -classpath were java options in 1.4. The documentation omits -cp as a javac option (specifying only -classpath), but as I recall, -cp did work. [ July 19, 2007: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
The only cure for that is hours of television radiation. And this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners