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.
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/spotbugsscript. Should I have to do that? I would think the script should already be executable when I untar thespotsbug-4.8.3.tgzfile.Regardless, I couldn't get the
spotbugsscript to work, so I switched to using java to execute thespotgsbug.jarfile 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-versiondoesn't return anything.java -jar /path/to/spotbugs/lib/spotbugs.jar -helpworks though. The-helpoutput says-versionshould "print version, check for updates and exit, without running analysis". It doesn't.