which javac invocation will correctly compile TestClass in the current directory?

Given that TestClass relies on classes in the someJar.jar file in /some/dir, which javac invocation
will correctly compile TestClass in the current directory?

Given that TestClass relies on classes in the someJar.jar file in /some/dir, which javac invocation
will correctly compile TestClass in the current directory?

A.
javac -classpath /some/dir/someJar.jar ./TestClass

B.
javac -classpath /some/dir/someJar.jar ./TestClass.java

C.
javac -classpath /some/dir/*.jar *.java

D.
javac ./*.java

E.
javac -classpath someJar.jar -sourcepath . TestClass.java



Leave a Reply 0

Your email address will not be published. Required fields are marked *