bash terppaint.sh compile does not work.
First, you have to run dos2unix to make it work.
Then, it produces tens of compilation errors. See attachment for compilation errors.
Run with Java 8:
java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)