get java_path from the os environments