To run LexSub, download a current release of LexSub-GPL and all required resources:
If you want to build lexsub and/or lexsub-gpl manually, see the README.txt in lexsub's project folder.
For more information on which resources are required and where to get them, see the README.txt in the resources download section.
Then configure the lexsub.conf you obtained from the resources section (or better a copy of it) to point to all required resources:
$ cd /to/any/folder
$ mkdir lexsub-test && cd lexsub-test
$ cp /path/to/lexsub.conf .
$ vim lexsub.conf
And run it:
$ java -Xmx2G -jar /path/to/lexsub-XXX.jar --run "This is an <head>example</head> sentence." --outdir . --model /path/to/model.jar