From ce9293b512bff94ce36254bb3ec12e45c593b598 Mon Sep 17 00:00:00 2001 From: Ramon Caballero Date: Thu, 15 Aug 2024 14:56:12 +0100 Subject: [PATCH] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc55ba9..f817639 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,13 @@ Typical Hello World written in Java ## Compile -`javac HelloJava.java` +`javac ./src/HelloJava.java -d ./bin/` ## Run -`java HelloJava` +`java -cp ./bin HelloJava` + +## Notes + +- `-d` Sets the destination directory for class files. +- `-cp` Specifies a list of directories, JAR files, and ZIP archives to search for class files.