Hi Jeanne,
The review question #14, Chapter 1:
Which options are valid on the jar command without considering module options? (Choose all that apply.)
A. -c
B. -C
C. -cp
D. -d
E. -f
F. -p
Corresponding Answer:
A, B, C, E. When creating a jar file, you use the options -cf or -cvf, making options A and E correct. The jar command allows the use of the classpath, making option C correct. It also allows the specification of a directory using -C, making option B correct. Options D and F are incorrect because -d and -p are used for modules.
However, according to the
Java Tools Reference, the jar command doesn't support -cp option.
99 little bugs in the code, 99 little bugs in the code.
Take one down, patch it around, 117 little bugs in the code.