changed the if statement used for java_opts