rm error.log 2> /dev/null
java -jar target/PBC4Project-1.0-SNAPSHOT-jar-with-dependencies.jar 2>error.log
if [ -s error.log ]
then
    echo "Error in the program"
    cat error.log
else
    echo "Program executed successfully"
fi
