I ran across this PDF, which is a digest of a handful of posts, explains how to set up JMRI. Reading through it, it explains a few things that many of us have found out by trial and error.
https://rcairgallery.com/stuff/Using-JMRI-Operations-A-Worked-Example.pdf