Modified:
wiki/QuickStart.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/QuickStart.wiki
==============================================================================
--- wiki/QuickStart.wiki (original)
+++ wiki/QuickStart.wiki Tue Dec 25 04:35:24 2007
@@ -44,4 +44,15 @@
System.out.println(server.add(1,2));
}
}
-}}}
\ No newline at end of file
+}}}
+
+=== Built-in example ===
+SRMI jar have a built-in example to let you see it in action
out-of-the-box. Just have SRMI.jar in the same directory with a lib
directory which has the tools.jar and log4j-1.2.14.jar.
+
+ * Set the environment variable CLASSPATH to SRMI.jar and /somedir.
+ * Run rmiregistry on port 1111 ("rmiregistry 1111").
+ * Run the server : java -ea
-Djava.system.class.loader=SRMI.Tests.SRMIClassLoader -jar SRMI.jar server
+ * Run the client : java -ea
-Djava.system.class.loader=SRMI.Tests.SRMIClassLoader -jar SRMI.jar client
+ * Run the indirect client : java -ea
-Djava.system.class.loader=SRMI.Tests.SRMIClassLoader -jar SRMI.jar indrclient
+
+Enjoy :).
\ No newline at end of file