G
giuseppe.on.usenet
The current directory has two files:
/* A.java */
package wrk.pkg;
import wrk.B;
class A { B b; }
/* B.java */
package wrk;
public class B { }
The command javac -d . A.java B.java
compiles successfully, while javac -d . A.java
halts because it "cannot find symbol: class B". My question is: by
adding other options, is it possible to have the compiler seek and
compile B.java without specifying the filename on the command line?
/* A.java */
package wrk.pkg;
import wrk.B;
class A { B b; }
/* B.java */
package wrk;
public class B { }
The command javac -d . A.java B.java
compiles successfully, while javac -d . A.java
halts because it "cannot find symbol: class B". My question is: by
adding other options, is it possible to have the compiler seek and
compile B.java without specifying the filename on the command line?