CAST HIGHLIGHT - CLI - Attempt to run the command results in "Error: Unable to access jarfile HighlightAutomation.jar"

User is using docker, java and CLI but whenever user runs the command the following error appears "Error: Unable to access jarfile HighlightAutomation.jar". 

Details

  1. Run the command line from the Highlight-Automation-Command directory so that the jar and other files are found. This directory is made when you download and unpack the CLI. path1.JPGYou need to run the command line from this directory so that the jar and other files are found.
    The command should be something like this (skipping upload - simple analysis):

    java -jar HighlightAutomation.jar --workingDir "C:\Temp\Highlight_automation\webgoat_work" --sourceDir "C:\Temp\Highlight_automation\webgoat"  --skipUpload
  2. Verify whether Java is working after installation by doing a

    java -version

    from a command prompt which should provide you the version of Java. Please check whether the version of Java you are using is the requisite one. Please refer CAST HIGHLIGHT - CLI - JRE upgrade to 11 needed for the HL Command Line version 5.4.9
  3. Check whether your installation of CLI, meets the requirements based on your OS, mentioned in Highlight Automated Code Scan (Command Line)

Ticket

32719

 

Related Pages

CAST Highlight’s Docker Image for Code Scans

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

Have more questions? Submit a request

Comments

Powered by Zendesk