The A.java and B.class files (Bytecode version of B.java) are in the current directory.
A.java uses B.java as follows:
class A {
B b;
}
From what I read, JDK tools first look in directories where standard Java libraries are installed. If the class is not found in standard libraries, the tool looks for the class path. If the class path is not defined, the default value for the class path is the current directory. Then why the following command does not work:
C:\current> javac A.java
source
share