How do i run PMD on a command line in linux
===

I tried 

    $java -jar ../lib/pmd-5.0.0.jar /var/lib/jenkins/jobs/MYPROJECT/workspace/ xml

error: 
Failed to load Main-Class manifest attribute from
../lib/pmd-5.0.0.jar

as per docs from [PMD][1]


  [1]: http://pmd.sourceforge.net/pmd-5.0.0/running.html

i also tried:


    $java -jar ../lib/pmd-5.0.0.jar /var/lib/jenkins/jobs/MYPROJECT/workspace/ xml java-basic,java-design -encoding UTF-8
    Failed to load Main-Class manifest attribute from
    ../lib/pmd-5.0.0.jar
