简体   繁体   English

FindBugs不会显示在项目属性中

[英]FindBugs Does Not Show Up in Project Properties

I had just installed FindBugs plugin for Eclipse. 我刚刚为Eclipse安装了FindBugs插件。 My Eclipse is Juno. 我的Eclipse是Juno。 I am using Windows 7. 我使用的是Windows 7。

It shows up at Help -> about Eclipse -> Installed Software as FindBugs Feature 它显示在Help - > about Eclipse - > Installed Software as FindBugs Feature

However it does not exist on Project Properties. 但是,它在项目属性中不存在。

I had tried to run eclipse as Administrator, installing from either marketplace or manual. 我试图以管理员身份运行eclipse,从市场或手动安装。

But no luck. 但没有运气。

I use a copied Eclipse (without installation) at Desktop. 我在Desktop使用复制的Eclipse(无需安装)。

Any thought on how to shows the FindBugs in project properties? 有关如何在项目属性中显示FindBugs的任何想法?

Thanks 谢谢

Just in case you haven't figured out yet, and so it might help others like me. 万一你还没想到,所以它可能会帮助像我这样的人。 If you are installing a version of Eclipse FindBugs 3.0 or greater, then it's only supported on Java 7. Update your JDK to 7.0 and you will see Findbugs show up as a part of your properties. 如果要安装Eclipse FindBugs 3.0或更高版本,那么它仅在Java 7上受支持。将JDK更新为7.0,您将看到Findbugs显示为属性的一部分。 Wasted a lot of hours on this one. 在这一个上浪费了很多时间。

I had same problem. 我有同样的问题。 I am using Kepler + windows 7 + jdk1.5. 我正在使用Kepler + windows 7 + jdk1.5。 This got resolved with jdk update from 1.5 to 1.7. 这从jdk更新从1.5到1.7得到解决。 May be it has dependency on 1.7 but there was no error message and like you said it was not visible in preference. 可能它依赖于1.7,但没有错误消息,就像你说的那样,它不是首选。

Check out this tutorial: 看看这个教程:

http://www.vogella.com/tutorials/Findbugs/article.html http://www.vogella.com/tutorials/Findbugs/article.html

I am using Eclipse Kepler in Windows 7, but it shouldn't make any difference. 我在Windows 7中使用Eclipse Kepler,但它不应该有任何区别。

There is also a FindBugs entry in context menu (right click project, under Import and Export options, in my case) 在上下文菜单中还有一个FindBugs条目(右键单击项目,在我的情况下,在导入和导出选项下)

Edit your eclipse.ini file (you can find it in your eclipse installation folder) and change or add (if it does not exist) the -vm parameter value to a Java 7 JDK. 编辑eclipse.ini文件(可以在eclipse安装文件夹中找到它),并将-vm参数值更改或添加(如果不存在)到Java 7 JDK。 More info here . 更多信息在这里

All other answers (installing latest Java, Eclipse update, adding '-vm ...' to the .ini-file did not work for me. I solved it by clicking "Window"->"Perspective"->"Open Perspective"->"Other..."->"FindBugs". 所有其他答案(安装最新的Java,Eclipse更新,将'-vm ...'添加到.ini文件中对我来说不起作用。我通过单击“Window” - >“Perspective” - >“Open Perspective”解决了这个问题。 - > “其他...” - > “FindBugs的”。

Then switch back to 'Java'-perspective. 然后切换回'Java'视角。 Now the menu is available when you right-click the project. 现在,右键单击项目时可以使用该菜单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM