#! /bin/sh # To run an arbitrary Javaspaces program, simply type: # # runJS [....params...] # # For example, # # unix% runJs NullIO 3 5 # # will run the Tonic NullIO test with the given parameters. # # Note that $NativeThreads is used to optionally specify the -native # option to supporting JVMs, to use native POSIX threads (this yields # the greatest benefit on multiprocessor hosts). Jini=@tonicjini@ SpaceName=@tonic_space_name@ ServerHost=@tonichost@@tonicdomain@ ServerPort=@tonic_server_port@ if [ "$TONICRC" = "" ] ; then TONICRC=$HOME/.tonicrc fi if [ -f $TONICRC ] ; then . $TONICRC fi Locator=$ServerHost ServerURL=http://${ServerHost}:${ServerPort} # To improve performance these .jars and misc classes s/b combined into one java @tonic_native_threads_switch@ -noverify \ -classpath @prefix@/tonic/lib/tonicm.jar:${CLASSPATH:-.}\ $Jini/lib/space-examples.jar:\ $Jini/lib/outrigger.jar:@tonicroot@/lib/ij.jar \ -Djava.security.policy=@prefix@/tonic/lib/policy.all \ -Dcom.sun.jini.lookup.locator=jini://$Locator/ \ -Dcom.sun.jini.outrigger.spaceName=$SpaceName \ -Djava.rmi.server.codebase=$ServerURL/tonicm.jar \ -Dcom.sun.jini.lookup.groups=public $@ 2>&1 exit $?