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