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 public_html directory is readable
by others:
Necessary files
Deployment process
java -version
If that returns 1.4.0, 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.0/bin $path)
After doing this, you will probably need to start a new shell for
doing the rest of this.
public_html and
public_html/codebase in your home directory.
mkdir ~/public_html
mkdir ~/public_html/codebase
chmod -R a+rX ~/public_html
javac -d ~/public_html/codebase *.java
setenv CLASSPATH ~/public_html/codebase
rmic to create skeletons/stubs:
rmic -d ~/public_html/codebase examples.hello.HelloImpl
java -Djava.rmi.server.codebase=http://kilpinen.mcs.gac.edu/~karl/codebase/ \
-Djava.security.policy=$HOME/public_html/policy \
examples.hello.HelloImpl