Question: how to use jdt in eclipse?
Answer: Step 1: create a very simple maven project. You will need org. eclipse. jdt. ... 
Step 2: write a java class with a main method.
Step 3: there is no step 3! You can just run your code in your IDE or from the command line using maven to compute your classpath.