Java commands Flashcards
1
Q
Compile non-modular code
A
javac -cp classpath -d directory classesToCompile
2
Q
javac -p moduleFolderName -d directory classesToCompileIncludingModuleInfo
A
Compile module
3
Q
Run non modular code
A
java -cp classpath package.className
4
Q
Run module
A
java -p moduleFolderName -m moduleName/package.className
5
Q
Describe module
A
java -p moduleFolderName -d moduleName
6
Q
List avaialble modules
A
java –module-path moduleFolderName –list-modules
7
Q
View module dependencies
A
jdeps -summary –module-path moduleFolderName jarName
8
Q
Show module resolution details
A
java –show-module-resolution -p moduleFolderName -m moduleName