#! /bin/bash export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar" CLASSES="Board Solver" rm *.class *.zip 2>/dev/null for kls in $CLASSES; do ~/algs4/bin/checkstyle ${kls}.java javac ${kls}.java done ~/algs4/bin/findbugs *.class echo "RUN..." java Solver puzzle02.txt java Solver puzzle3x3-unsolvable2.txt java Solver puzzle41.txt java Solver puzzle4x4-hard2.txt zip 8puzzle.zip Board.java Solver.java