This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Adding new rule to Eclipse's code analysis plugin PMD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Adding new rule to Eclipse Watch "Adding new rule to Eclipse New topic

Adding new rule to Eclipse's code analysis plugin PMD

Piyush Tripathi

Joined: Jan 28, 2009
Posts: 16
I've added a plugin to eclipse for java code analysis,the plugin is PMD.Now i want to add a new rule to the existing rules of PMD.
I make a plug in development project by going to New Project wizard -> Plug in development->Fragment Project.After making the rule class I run the project as Eclipse Application.A new instance of eclipse is started. In this i add the rule to the plugin.For this I go to Window | Preferences... | PMD | Rules configuration .There i go to Add Rule and in the dialog that opens i fill the required fields but when i click ok I get the following message-
Invalid implementation class .The class must be in the plugin classpath and implement the rule interface.

What am i doing wrong? Can anyone please suggest me.

Thanks in advance,

Shainaz Tamboli

Joined: Jun 09, 2010
Posts: 11
Hi All,

I am also facing the same problem.
Can you please tell me how to solve above problem.


It is sorta covered in the JavaRanch Style Guide.
subject: Adding new rule to Eclipse's code analysis plugin PMD
It's not a secret anymore!