Eclipse Kepler shows error marks on warnings

邮差的信 提交于 2019-12-12 02:29:35

问题


I've got a problem with Eclipse Kepler. In my Java project i've got some warnings and now they are shown as error marks (red crosses) in the project explorer.

It looks like this picture http://i.stack.imgur.com/H8j7f.png

So my question is: Is it possible to switch it back to the yellow cross for warnings and red cross for errors? I haven't found anything about it, so I hope you can help me.

Edit:

I've made a test project, and here is a screenshot:

Thanks!


回答1:


It might me because you set the compiler to mark as errors what used to be a warning. You can set this in the Window->Preference menu. So open it and go into Java->Compiler->ErrorsWarnings and check if everything is like you want it to be.

You can also check into the compiler menu (Java->Compiler) if the java Compiler compliance level is set as you want it to be as @Chrylis suggested.

Otherwise it might be because your program is unable to compile because of a dependency problem then you might want to check your build path or JRE in the Run configurations menu.

Right click on your project -> Run as -> Run Configurations.




回答2:


I solved it :)

At the first start I took my old workspace as workspace. Because of that there was an Error "Missing Action set" (I've found the "error log"-window :) ) and thats why the red crosses has been shown.

Now I have a new workspace and now everything is fine!



来源:https://stackoverflow.com/questions/18488813/eclipse-kepler-shows-error-marks-on-warnings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!