What follows is based on the skeleton application described in Programming with Jtrix: The Beatrix application framework at http://www.jtrix.org.
You may need to change some of what follows according to where your Jtrix JARs are located.