Add java_environment option