Miguel,
What you have to realize about this article is that the author starts out by giving you "how to do it wrong" so that you hopefully will have an understanding about how it works.
How to do it right is:
Both when compiling and when running a class, set your current directory to the root directory from which your folder tree branches out. In your case, you should set the current directory to c:\raiz. Both when compiling and when running a class, Always include the current directory in your classpath (-cp = ".") along with whatever other classes you need. the following should compile both classes:
When running the class, use the following:
Having said this, realize that for large
java projects, this isn't a very convenient way to compile. Most developers will either use
ANT, which is an open source build tool, or they will use an Interactive Development Environment (
IDE) such as Eclipse or NetBeans that compiles for them.
[ March 08, 2005: Message edited by: Merrill Higginson ]