Dear All,

I am trying to understand RMI Concept and have tried the sample steps and programs written in Oracle website http://docs.oracle.com/javase/tutorial/rmi/compiling.html

In this URL they have mentioned to run the command as below

javac -cp c:\home\jones\public_html\classes\compute.jar
    client\ComputePi.java client\Pi.java
mkdir c:\home\jones\public_html\classes\client
cp client\Pi.class

I have tried the exact command in my computer only change is I have used different directories. The command is not working and throws error as below

C:\>javac -cp c:\compute.jar com\connect\server\ComputePi.java com\connect\server\Pi.java mkdir c:\home\jones\public_html\classes\client cp com\connect\server\Pi.class c:\home\jones\public_html\classes\client  
javac: invalid flag: c:\home\jones\public_html\classes\client  
Usage: javac <options> <source files>  
use -help for a list of possible options 

Please advise

4 Years
Discussion Span
Last Post by murali2489

which is ... clearly not the same. or you really messed up the formatting of what you tried.

I'm pretty sure that if that tutorial was wrong, someone would 've pointed it out already.

chances are you missed something in your configuration or tried to run two commands on one line instead of two.


Hi Stultuske,

As you said I tried the command in one line only. In that tutorial all commands were one line commands, All commands worked except this one.

If its a multiline command, could you please write the correct way of doing this command line by line. Thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.