Get the PID of a running Java process using only Bash tools
ps -ax | grep "java -jar" | grep -v "grep" | cut -d " " -f 1