added support for java opts