1 2 3 4
#!/bin/bash export SECPOLICY="file:./policy" java -cp . -Djava.security.policy=$SECPOLICY rmi.RMIServer