About Question enthuware.ocpjp.i.v11.2.3027 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
teodorj
Posts: 33
Joined: Tue Jun 19, 2018 10:27 am
Contact:

About Question enthuware.ocpjp.i.v11.2.3027 :

Post by teodorj »

In the explanation..
4. --module-path or -p: This option specifies the location(s) of any other module upon which the module to be compiled depends and is very versatile. You can specify the exploded module directories, directories containing modular jars, or specific modular jars here.
For example, if you want to compile moduleA and it depends on another module named abc.util packaged as utils.jar located in thirdpartymodules directory then your module-path can be thirdpartymodules or thirdpartymodules/utils.jar. That both the
following two commands will work:

javac --module-source-path src --module-path thirdpartymodules -d out --module moduleA
and
javac --module-source-path src --module-path thirdpartymodulesutils.jar -d out --module moduleA

I think the --module-path parameter should contain slash like below:
javac --module-source-path src --module-path thirdpartymodules/utils.jar -d out --module moduleA

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

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by admin »

Yes. Updated in 817 question bank.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

sohamdatey22
Posts: 28
Joined: Sun Sep 11, 2022 3:55 am
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by sohamdatey22 »

javac --module-source-path src -d out src/moduleA/a/A.java

my understanding is, the above line will just compile file A.java, it will not compile, the whole module and other modules that moduleA depends upon, to compile moduleA, with other dependencies(modules), we have to write below command,

javac --module-source-path src -d out -m moduleA

please correct me if wrong, thanks for this community, I am loving it.

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

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by admin »

Yes, that is correct.
If you like our products and services, please help us by posting your review here.

apushkinn
Posts: 1
Joined: Thu Oct 26, 2023 12:17 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by apushkinn »

sohamdatey22 wrote:
Thu Sep 29, 2022 2:07 am
javac --module-source-path src -d out src/moduleA/a/A.java

my understanding is, the above line will just compile file A.java, it will not compile, the whole module and other modules that moduleA depends upon, to compile moduleA, with other dependencies(modules), we have to write below command,

javac --module-source-path src -d out -m moduleA

please correct me if wrong, thanks for this community, I am loving it.

could be
javac --module-source-path src -d out --module moduleA
as well

cksylr
Posts: 3
Joined: Tue Feb 20, 2024 12:59 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by cksylr »

Hi,

Can you fix the problem in 819 bank question?
enthuware.ocpjp.v17.2.3027

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

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by admin »

I see that it is already fixed in the 819 question bank. Which version of the question bank are you using? Please download the latest from enthuware.com/downloads/1z0-819.ets
If you like our products and services, please help us by posting your review here.

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

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by admin »

I see that it is already fixed in the 819 question bank. Which version of the question bank are you using? Please download the latest from enthuware.com/downloads/1z0-819.ets
If you like our products and services, please help us by posting your review here.

cksylr
Posts: 3
Joined: Tue Feb 20, 2024 12:59 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by cksylr »

My fault. It should be 829 question bank. I saw same problem.

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

Re: About Question enthuware.ocpjp.i.v11.2.3027 :

Post by admin »

It is already fixed in 829 as well.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

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