Remove jar file and add error handling in script.
Ignore jar files.
Fix JVM options handling in script.