Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Option '-Djava.rmi.server.hostname' unnecessary?

807569Aug 10 2006 — edited Aug 10 2006
In this tutorial:

http://java.sun.com/docs/books/tutorial/rmi/running.html

you start the rmi server with:

java -Djava.rmi.server.codebase=file:/c:\home\ann\public_html\classes/
-Djava.rmi.server.hostname=zaphod.east.sun.com
-Djava.security.policy=java.policy
engine.ComputeEngine


but in this tutorial:
http://java.sun.com/j2se/1.4.2/docs/guide/rmi/getstart.doc.html#5321

you start it without the Djava.rmi.server.hostname option:

java -Djava.rmi.server.codebase=http://myhost/~myusrname/myclasses/ -Djava.security.policy=$HOME/mysrc/policy examples.hello.HelloImpl


I have also tried to omit the hostname option from the first tutorial and it works fine..


Why is it not necessary to specify the Djava.rmi.server.hostname option to make the examples work?

What is the function of this option?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2006
Added on Aug 10 2006
1 comment
247 views