~/ 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/e17f6566-5fd0-4dc0-a6b0-8b23459362fb/flashcard utf-8 LF