How to install selenium web driver

how to install selenium java and how to attach in eclips