package janet.examples.helloworld; import janet.services.*; import java.rmi.*; final class Application { public static void main ( String args[] ) throws Exception { // set hspDomainName to the domain name of a machine running an Hsp String hspDomainName = args[ 0 ]; // get a remote reference to an Hsp HspAgent agent = new HspAgent( hspDomainName ); Client2Hsp hsp = agent.getClient2Hsp(); // login Environment environment = new Environment( null, null ); hsp.login( environment ); // compute Task task = new HelloTask(); String value = (String) hsp.compute( task ); System.out.println( value ); // logout hsp.logout(); } }