Skip to main content Join us at TDX in San Francisco or on Salesforce+ on March 5-6 for the Developer Conference for the AI Agent Era. Register now.

Any help available, got an error Static Analysis Failed. Error Details: PMD Command Failed!  Enable "Show StdErr" setting for more info. Where does I need to go to enable it?

Visual Studio Code

6 answers
  1. Jan 11, 2023, 1:54 PM

    This happened to me as well (Mac). I basically went and installed the latest version of Java here at https://www.java.com/en/

     

    Download it-> hit save on your AccountController.cls once again -> issue went away for me. If this doesn't work, quit your VSCode and open once more and try the repeat the steps for the AccountController.cls after Java is downloaded. 

     

    The latest Java version will help with several of the Apps you installed with the Salesforce Extension Pack as well. 

  2. Nov 15, 2024, 2:46 PM

    Hi, @Lluwellyn Nuwegeld

     

    In this case, I would recommend reinstalling your VS Code, as well as everything related to Salesforce development.

     

    How to do this? There's a great Trailhead that provides step-by-step instructions:

     

    Sincerely, 

    Mykhailo Vdovychenko 

    Bringing Cloud Excellence with IBVCLOUD OÜ 

  3. Nov 15, 2024, 2:23 PM

    THis is old thead but my solutions is not here.

     

    My VS Code was working fine then out of the blue I started getting this error. The reason was due to the naming convention in my code path. I had a folder with a space.

     

    I removed the space from the folder path and it worked fine.

  4. Jun 19, 2022, 4:14 AM

    Please check JRE version and if it is ole. Please update first and check again.

0/9000