When running jdeps, which three ways include dependent nonmodular jar files? (Choose three.)
When running jdeps, which three ways include dependent nonmodular jar files? (Choose three.)
To include dependent non-modular jar files when running the jdeps tool, you need to specify the correct paths to where these jar files are located. The -classpath or --class-path options correctly specify where to find class files, including dependent jars. Additionally, the --module-path option specifies the module path for finding Java classes. These methods ensure that the dependent jars are included in the analysis.
answer : ABF A RIGHT jdeps [options] path ... path A pathname to the .class file, directory, or JAR file to analyze. B RIGHT -cp path, -classpath path, or --class-path path Specifies where to find class files. looks like jar files also possible to include C not right this about module --upgrade-module-path modulepath.. A semicolon (;) separated list of directories in which each directory is a directory of modules that replace upgradeable modules in the runtime image D not right this is not about include dependent E FAILED about modules F same as B G same as B but there is a syntax error (--cp -> -cp)
ABG G same as B F same as B but there is a syntax error (--cp -> -cp)
B. jdeps -classpath lib/file1.jar:lib/file2.jar:lib/file3.jar application.jar C. jdeps --upgrade-module-path lib/file1.jar:lib/file2.jar:lib/file3.jar application.jar E. jdeps --module-path lib/file1.jar:lib/file2.jar:lib/file3.jar application.jar
options -classpath , --class-path and --module-path are valid. While --cp is invalid. should be -cp
The -classpath or --class-path option can be used to specify where to find class files 1. The --module-path option can be used to specify the module path 1.