I just tried running the code that you provided and I’m not getting any error. Could you please tell me which image you are using? Same for Eclipse, which version are you using?
Have you checked the “Problems” tab next to Tasks in the Eclipse Log? Do you see any message in there?