Create runnable jar with Eclipse

Eclipse make the process of creating an executable file very easy.

Right click on your project in eclipse > Run as > Run Configurations…
And create a run configuration. I choose to call it dir2server


Make sure you target the right project and right entry class then apply.
Right click again on your project > Export > Runnable JAR File and choose your run configuration: