Compiling the application

Compiling a Jtrix application is just a normal Java compile, but it's important to put our compiled classes, both Hello1Client and IHelloFacet, into a JAR.

In this case compilation requires two JARs to be on our classpath:

  1. jtrix.jar because we're using INetlet, IService, etc;
  2. libjtrix.jar because we're using NullService.
Then we'll put our newly-compiled classes in a JAR called hello1.jar. We don't even need to include a manifest, because we won't be running hello1.jar from the command line.

In general our Jtrix code will of course consist of many classes and perhaps other files, but after compilation they should all be bundled up into one or more JARs. Having the JARs enables our application to be moved from node to node.

Nik Silver 2002-03-09