Now sorta tested on centos 6 (and fix java package name).
On CentOS apache doesn't have a default shell, so specify one in the command line.