The following example shows how you would specify the template for Sun's reference JVMs:
-Djava.rmi.activation.port=#
Be sure that this is the same port used by the rmid you are connecting to.