Fixed Java default directory for Ubuntu. Fixed problem with directory in init.d script (instance name was missing)