Use jar file directly instead of bash script