Added possibility to specify JAVA_OPTS.