set java_home env according to OS