Starting an Application

Please see the JICOS Tutorial for creating the java files for a JICOS application.  In what follows, I assume that:
  • you have created an application, whose fully qualified package name is called MyApplication
  • $JICOS is an environment variable set to the directory into which jicos-<version>.jar was extracted (See Downloading & installing JICOS).
The Task classes for MyApplication that need to be downloaded to the Host[s] are accessable via a web server at url URL. To start MyApplication, execute:
java -cp .:$JICOS/lib/jicos-system.jar
    
-Djava.rmi.server.codebase=URL
     -Djava.security.policy=$JICOS/policy/policy
      MyApplication hsp-machine <other command-line parameters go here>
The 1st command-line parameter is the domain name of the machine on which the HSP's rmiregistry is listening. The command line below is an example of this:
java -cp $JICOS/lib/jicos-system.jar 
 -Djava.rmi.server.codebase=http://www.cs.ucsb.edu/~cappello/classes/
 -Djava.security.policy=$JICOS/policy/policy 
  edu.ucsb.cs.jicos.examples.helloworld.Application lysander
Relative to the $JICOS directory, there is an Application.class file whose package name is edu.ucsb.cs.jicos.examples.helloworld.

The class files for the HelloTask task is available for download via a web server from http://www.cs.ucsb.edu/~cappello/classes/ Don't forget the trailing "/". Also, the classes actually reside in the ~cappello/public_html/classes/jicos/examples/helloworld directory.

The command-line parameters indicate that the HSP is running on a machine with domain name lysander. The application simply prints "Hello, world!" to System.out.