Question: how to install jdt in eclipse?
Answer: In Eclipse C++, select Help > Install New Software from the menu. The Install wizard appears.
In the filter field following the Work with field, type java . ... 
Select Eclipse Java Development Tools .
Click Next to complete the Eclipse Install wizard.