Skip to content

Commit ef7c9ea

Browse files
committed
Update README.md
1 parent cb09473 commit ef7c9ea

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ This project should build out of the box with Maven.
1111

1212
Running this can be a somewhat involved task, but here's the simple way to do it:
1313

14-
1. Run the rmiregistry program. This should be in $JAVA_HOME/bin.
15-
16-
``rmiregistry -J-Djava.rmi.server.useCodebaseOnly=false``
17-
2. Run the RMIServer. Make sure that when setting the RMI server codebase, the path ends with a /, otherwise **it will not work**. ``java -Djava.rmi.server.useCodebaseOnly=false -Djava.rmiserver.codebase=file:C:\path\to\classes\ com.rm5248.rmiserver.RMIServerMain``
18-
19-
3. Run the RMIClient. Make sure that when setting the RMI server codebase, the path ends with a /, otherwise **it will not work**. Also ensure that client.policy is accessible by the application.
20-
21-
``java -Djava.rmi.server.useCodebaseOnly=false -Djava.rmi.server.codebase=file:C:\path\to\classes\ -Djava.security.policy=client.policy com.rm5248.rmiclient.RMIClientMain``
14+
1. Run the rmiregistry program. This should be in $JAVA_HOME/bin. ``rmiregistry -J-Djava.rmi.server.useCodebaseOnly=false``
15+
2. Run the RMIServer. Make sure that when setting the RMI server codebase, the path ends with a /, otherwise **it will not work**. ``java -Djava.rmi.server.useCodebaseOnly=false -Djava.rmiserver.codebase=file:C:\path\to\classes\ com.rm5248.rmiserver.RMIServerMain``
16+
3. Run the RMIClient. Make sure that when setting the RMI server codebase, the path ends with a /, otherwise **it will not work**. Also ensure that client.policy is accessible by the application. ``java -Djava.rmi.server.useCodebaseOnly=false -Djava.rmi.server.codebase=file:C:\path\to\classes\ -Djava.security.policy=client.policy com.rm5248.rmiclient.RMIClientMain``
2217

2318
Everything should now come up and you should see a message in the server window. The client prints out the number of characters that it sent to the server.
2419

0 commit comments

Comments
 (0)