Skip to content

java -jar /path/to/spotbugs/lib/spotbugs.jar -version prints nothing #2797

@esabol

Description

@esabol

I'm a newbie trying to use SpotBugs 4.8.3 from the RHEL 8.9 command line and having a fair amount of difficulty. I had to chmod +x /path/to/spotbugs/bin/spotbugs script. Should I have to do that? I would think the script should already be executable when I untar the spotsbug-4.8.3.tgz file.

Regardless, I couldn't get the spotbugs script to work, so I switched to using java to execute the spotgsbug.jar file directly. That at least started the GUI, but I really want to use it from the command line, so I started to investigate the command line options and was surprised to discover -version doesn't return anything.

> java -jar /path/to/spotbugs/lib/spotbugs.jar -version
> 

java -jar /path/to/spotbugs/lib/spotbugs.jar -help works though. The -help output says -version should "print version, check for updates and exit, without running analysis". It doesn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions