# to copy jar files (optional)
#nodemon -e jar -w jar -x 'cp -r /app/jar/* /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/'

# to reload and compile when .java files are changed
nodemon -e java -w src -x 'javac -cp /app/src -d /app/bin /app/src/*.java && java -cp /app/bin MyClass'