diff options
Diffstat (limited to 'java/07-simple-objects-better-use-jar/myapp')
| -rw-r--r-- | java/07-simple-objects-better-use-jar/myapp/README | 10 | ||||
| -rwxr-xr-x | java/07-simple-objects-better-use-jar/myapp/run.sh | 15 |
2 files changed, 15 insertions, 10 deletions
diff --git a/java/07-simple-objects-better-use-jar/myapp/README b/java/07-simple-objects-better-use-jar/myapp/README deleted file mode 100644 index 80ed401..0000000 --- a/java/07-simple-objects-better-use-jar/myapp/README +++ /dev/null @@ -1,10 +0,0 @@ -# NOTE: -# On Windows, -# 1. Instead of using ':' as the classpath seperator, use ';'. -# 2. Use \ as the directory seperator. - -# Compile -javac -cp ../myaccountslib/dist/myaccountslib.jar:. AccountApp.java - -# Run -java -cp ../myaccountslib/dist/myaccountslib.jar:. AccountApp 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 |
