~/ learn/ java-from-zero/ cards/ Building & running modular apps
1 of 4

Type the javac command for multi-module compilation

Type the javac command for multi-module compilation

Answer

javac --module-source-path src -d out $(find src -name "*.java")

--module-source-path points to the directory containing the module directories. -d out sets the output root. javac infers module structure from the layout.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/e5b5d7b5-0da2-43fc-a3dc-0d88be881a61/flashcard utf-8 LF