support for java_opts and ubuntu

support for java_opts and ubuntu