JAVA_OPTS was being applied twice