added generic init script for java app