To use JODConverter from the command line, download the jodconverter-2.2.0.zip distribution, unpack and execute the jodconverter-cli-2.2.0.jar JAR with java.
To convert a single file specify input and output files as parameters
java -jar lib/jodconverter-cli-2.2.0.jar document.doc document.pdf
To convert multiple files to a given format specify the format using the -f (or –output-format) option and then pass the input files as parameters
java -jar lib/jodconverter-cli-2.2.0.jar -f pdf *.odt