bash script to find and execute java classes with main methods