OpenJML is a tool for working with logical annotations in Java programs. It enables static or run-time checking of the validity of the annotations, with other features underway.
The tool is available as a standalone command-line application for MacOS and Linux (Ubuntu) and WSL, Cygwin and CMD on Windows and as a LSP-compliant server for various IDEs. Use Linux distributions for WSL and Windows distributions for Cygwin.
The OpenJML command line tool is OS-dependent. Download the appropriate release from the github latest release page.
The download retrieves a .zip file. Unzip the file into a new directory of your choice (call it $OJ). After unzipping, $OJ should contain the `openjml` executable and other files and folders. Some browsers or download utilities will automatically unzip the .zip file for you, leaving an unzipped folder in your downloads folder. You can move or rename the folder (with all its contents) to a location of your choice.
These are the particularly relevant files in the top-level of the installation folder. Use the scripts with a .bat extension on WIndows and in Cygwin; use the scripts without an extension on Linux and MacOS.
Current versions of the pdf documentation files are also available from this web site.
If $OJ is the installation directory, then you can run openjml using the command line $OJ/openjml. For example, $OJ/openjml --version will emit the version number of its build.
Further instructions about running OpenJML can be found in the tutorial.
OpenJML uses SMT solvers as logic checkers. A selection of supported solvers is bundled with the OpenJML release.