Skip to content

Instantly share code, notes, and snippets.

@uxter
Last active September 24, 2022 11:49
Show Gist options
  • Save uxter/fd7f166bbe76927c5e764231577e7ff2 to your computer and use it in GitHub Desktop.
Save uxter/fd7f166bbe76927c5e764231577e7ff2 to your computer and use it in GitHub Desktop.
nodemon watch and run java application
nodemon -e java —watch ./src —exec 'javac -sourcepath ./src -d ./bin \
src/path/to/code/ServerExample.java; \
java -classpath ./bin path.to.code.ServerExample'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment