This page describes a version of the HelloWorld RMI example from
JavaSoft that I configured for working here. To see the JavaSoft's
more detailed explanation, go to the Following are the files you need:
Following is the process I go through to get the applet running
(assuming that you have the three java files in some source-file
directory, and the html file in some accessible place in your
www-docs):
You also need to make sure that your www-docs directory is readable
by others:
Necessary files
Deployment process
java -version
If that returns 1.4.[any], then all is well. If not, then the best thing
to do is to put the following line in your .cshrc file:
set path=(/usr/java/j2sdk1.4.1_03/bin $path)
After doing this, you will probably need to start a new shell for
doing the rest of this.
www-docs and
www-docs/codebase in your home directory.
mkdir ~/www-docs
mkdir ~/www-docs/codebase
chmod -R a+rX ~/www-docs
javac -d ~/www-docs/codebase *.java
setenv CLASSPATH ~/www-docs/codebase
rmic to create skeletons/stubs:
rmic -d ~/www-docs/codebase examples.hello.HelloImpl
java -Djava.rmi.server.codebase=http://kilpinen.mcs.gac.edu/~karl/codebase/ \
-Djava.security.policy=$HOME/www-docs/policy \
examples.hello.HelloImpl