Make sure all the existing components of Eclipse are updated. To do this choose Help → Check for Updates.
To install Java, choose Help → Install New Software. From the Work with dropdown, choose EPP Packages Repository. Expand the Uncategorized section below and choose EPP Java Package. Click Next and navigate through the install wizard to the finish.