Set java home in compile.