This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ]