File -> Export -> Export JAR File. Then select your project, press next twice, select the main class.
If you just want to run, open the main class and click the green arrow at the top.
If you just want to build class files, I believe that Eclipse automatically builds every time you save. You need to select Project -> Build Automatically