Eclipse PMD Can't find basic.xml

Karl picture Karl · Dec 13, 2012 · Viewed 10k times · Source

When attempting to run for a project in Eclipse/Juno, I am getting this error.

An internal error occurred during: "ReviewCode".
Couldn't find the class Can't find resource rulesets/basic.xml.  Make sure the resource is a valid file or URL or is on the CLASSPATH.  Here's the current classpath: C:\eclipsejuno\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

Anyone know how I can resolve this problem?

Answer

ScouseChris picture ScouseChris · Feb 8, 2013

I have seen this problem with the command line version as well. In the latest version the classpath is rulesets/java/basic.xml

It seems they changed the default paths between versions. You either need to manually update your paths in the PMD config, or update to the latest version.