the compiler also needs to know classpaths.
How else could it find the standard libraries?
If you have a program that imports other classes you wrote
that are in packages, how else would the compiler find them?
As well as the
java launcher, the compiler also needs classpaths.
For the above question, you need to omit the system classpath, as this is overridden by a command line -classpath switch.
And finally, remember that /foo/bar/baz is an
absolute path, not a relative path, so the compiler looks in the baz directory, which resides at /foo/bar/baz.
Best regards.
[ July 27, 2008: Message edited by: Keith Nagle ]
[ July 27, 2008: Message edited by: Keith Nagle ]