When i created project before i could se开发者_运维知识库e the .java file on project file a cross mark is displayed and it is showing errors. Once I executed 'hello world' it ran successfully.
Look in the "Problems" tab, normally at the bottom of your Eclipse workspace. This will tell you what the problem is. Sometimes you just need to do Project > Clean and rebuild it.
精彩评论