posted 17 years ago
Hi, i have a problem with the K&B book, selftest chapter 10, question 10.
There are three versions of MyClass.java in
/foo/bar
/foo/bar/baz and
/foo/bar/baz/bing
The command is invoked from /foo:
javac -classpath /foo/bar/baz/bing:/foo/bar MyClass.java.
The answer is:
The version in /foo/bar/baz/bing is compiled.
I tried it, and it didn't compile. And thats, what i expected, because the compiler can't find the file. It doesn't matter, what the classpath is, because the file is not in the active directory.
I didn't find anything about this question in the forum, perhaps i missed something.
Gru�
J�rg