From 739d520c9fe985813f85d76b591daf495f702464 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sat, 14 Feb 2026 17:09:23 +0530 Subject: Added a sample project that shows how to create and use jar files. --- java/07-simple-objects-better-use-jar/myaccountslib/README | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 java/07-simple-objects-better-use-jar/myaccountslib/README (limited to 'java/07-simple-objects-better-use-jar/myaccountslib/README') diff --git a/java/07-simple-objects-better-use-jar/myaccountslib/README b/java/07-simple-objects-better-use-jar/myaccountslib/README new file mode 100644 index 0000000..94d053e --- /dev/null +++ b/java/07-simple-objects-better-use-jar/myaccountslib/README @@ -0,0 +1,12 @@ +# NOTE: +# On Windows, +# 1. Use \ as the directory seperator. + +# Compile: +mkdir bin +javac --source-path src/ -d bin/ src/*.java + +# Build jar file: +mkdir dist +cd bin +jar cf ../dist/myaccountslib.jar *.class -- cgit v1.2.3