From fb41c4222778536d53f01bba9c9ff66eb06686a9 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Mon, 16 Feb 2026 07:28:53 +0530 Subject: Added more details to create Windows batch files --- java/07-simple-objects-better-use-jar/myapp/run.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 java/07-simple-objects-better-use-jar/myapp/run.sh (limited to 'java/07-simple-objects-better-use-jar/myapp/run.sh') diff --git a/java/07-simple-objects-better-use-jar/myapp/run.sh b/java/07-simple-objects-better-use-jar/myapp/run.sh new file mode 100755 index 0000000..a6fe2ed --- /dev/null +++ b/java/07-simple-objects-better-use-jar/myapp/run.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# This is a Linux executable bash script. + +# Delete .class files +rm *.class + +# Compile + +# Note that the classpath specified includes a jar file and the current working +# direcoty identified by '.'. +javac -cp ../myaccountslib/dist/myaccountslib.jar:. AccountApp.java + +# Run +java -cp ../myaccountslib/dist/myaccountslib.jar:. AccountApp -- cgit v1.2.3