diff options
Diffstat (limited to 'java/07-simple-objects-better-use-jar/myapp/run.sh')
| -rwxr-xr-x | java/07-simple-objects-better-use-jar/myapp/run.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
