Java commands Flashcards

1
Q

Compile non-modular code

A

javac -cp classpath -d directory classesToCompile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

javac -p moduleFolderName -d directory classesToCompileIncludingModuleInfo

A

Compile module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Run non modular code

A

java -cp classpath package.className

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Run module

A

java -p moduleFolderName -m moduleName/package.className

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe module

A

java -p moduleFolderName -d moduleName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List avaialble modules

A

java –module-path moduleFolderName –list-modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

View module dependencies

A

jdeps -summary –module-path moduleFolderName jarName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Show module resolution details

A

java –show-module-resolution -p moduleFolderName -m moduleName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly