The problem is most likely with your run configuration.
- Go to your Class that contains the main(String[] args) method you wish to automatically run
when the jar is called from the command line - Right-click->Run As…->Application
- Make sure it runs to your satisfaction
- Now go through the export process as before, selecting the newly created launch configuration.
The last step is key.