What fixed the problem in my case was:
Right click on the project/class you want to run, then Run As
->Run Configurations
. Then you should either fix your existing configuration or add new in the following way:
open the Classpath
tab, click on the Advanced...
button then add bin
folder of your project.