Eclipse – Auto complete for static import

To enable auto complete for static field and methods from a given type you can add that type into Favorites section in the eclipse preference. Go to windows > preferences > java > editor > content assist > favorites and click on the New Type button and type in the absolute class name. (ie org.junit.Assert.*)
Continue reading…

 

How to create java maven project in Eclipse?

In this post we will talk about creating java maven project. Steps involved in creating java maven project. 1. Lunch eclipse. Click “File->New->Maven Project” menu item. 2. In the new maven project dialog, select “create a simple project” check box and click “Next” button. 3. Give appropriate “Group Id”, “Artifact Id”, “Version” and “Packaging Type”. […]
Continue reading…