From 5bbfd2601d49c54b2c995c59fd1d80d37f37d9f0 Mon Sep 17 00:00:00 2001 From: Muhammad-Sharif Moustafa Date: Fri, 15 Jan 2016 00:51:53 -0500 Subject: [PATCH] javac: add -d and multiple files examples --- pages/common/javac.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/common/javac.md b/pages/common/javac.md index 8d43576152..4f7f278331 100644 --- a/pages/common/javac.md +++ b/pages/common/javac.md @@ -5,3 +5,15 @@ - Compile a .java file: `javac {{filename.java}}` + +- Compile several .java files: + +`javac {{filename1.java}} {{filename2.java}} {{filename3.java}}` + +- Compile all .java files in current directory: + +`javac {{*.java}}` + +- Compile a .java file and place the resulting class file in a specific directory: + +`javac -d {{path/to/some/directory}} {{filename.java}}`