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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
bjpeter
Posts: 12
Joined: Thu Jun 27, 2019 3:42 pm
Contact:

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

Post 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

admin
Site Admin
Posts: 10398
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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?

bjpeter
Posts: 12
Joined: Thu Jun 27, 2019 3:42 pm
Contact:

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

Post by bjpeter »

I apologize. I should have looked at the URL before posting.

kevvvvyp
Posts: 4
Joined: Wed Jun 05, 2019 3:22 pm
Contact:

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

Post 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."

admin
Site Admin
Posts: 10398
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

ewebxml
Posts: 77
Joined: Sun Jun 30, 2013 10:04 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10398
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Right. It should be file instead of fie!
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests