Page 1 of 1

About Question enthuware.ocpjp.ii.v11.2.3441 :

Posted: Thu Jun 27, 2019 4:10 pm
by bjpeter
Is --class-path a valid option for jdeps? I only see -cp and -classpath in the documentation:

https://docs.oracle.com/javase/8/docs/t ... jdeps.html

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Posted: Thu Jun 27, 2019 9:33 pm
by admin
Yes, it is valid. Try running java -help on the command line. It shows, among other things:

Code: Select all

  -cp <class search path of directories and zip/jar files>
  -classpath <class search path of directories and zip/jar files>
  --class-path <class search path of directories and zip/jar files>
Anyway, why are you using java 8 documentation while studying for Java 11 exam?

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Posted: Sat Jun 29, 2019 2:52 am
by bjpeter
I apologize. I should have looked at the URL before posting.

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Posted: Thu Feb 06, 2020 7:09 am
by kevvvvyp
Can we remove the answer from the question?
"Based on the given options, our guess is that in this question they are just checking whether you know that -cp, -classpath, and --class-path are equivalent options and the nonmodular jars should be put on classpath instead of module-path."

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Posted: Thu Feb 06, 2020 7:31 am
by admin
The only purpose of this question is to sensitize the student about jdeps options. Most students get put off by seeing a question that is seemingly off topic and that is why we feel it is important to calm the nerves by explaining why this question is there.

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Posted: Wed May 20, 2020 4:52 pm
by ewebxml
For the question
Which jdeps option(s) is/are used to include dependent nonmodular jar files?

Choice b says

Code: Select all

jdeps --upgrade-module-path file1.jar;fie2.jar app.jar
----- ----- ----- -----
I believe it should be

Code: Select all

jdeps --upgrade-module-path file1.jar;file2.jar app.jar

Please confirm.

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Posted: Thu May 21, 2020 12:52 am
by admin
Right. It should be file instead of fie!
thank you for your feedback!