So I am going through the "Getting Started Using Java RMI" and I get stuck at the following spot...
[B]javac[/B] -d [U]destDir[/U] Hello.java Server.java Client.java
I use...
[B]C:\"Program Files"\Java\jdk1.6.0_11\bin\javac [/B] -d [U]C:\"Documents and Settings"\"Andrew Carrara"\Desktop\test\mysrc\example.hello[/U] Hello.java Server.java Client.java
I get an invalid flag error.
What exactly does the '-d' do, and what should happen in the destDir?
the Directory I am using is ...
C:\"Documents and Settings"\myname\Desktop\test\mysrc\example.hello
This is where the .class files are already located.
I am able to run the RMIRegistry with no problem.
Further down I get stuck at Start the server
They say to do this..
[B]start java[/B] -classpath [U]classDir[/U] -Djava.rmi.server.codebase=file:classDir/ example.hello.Server
I am doing ...
[B]C:\"Program Files"\Java\jdk1.6.0_11\bin\start java[/B] -classpath [U]C:\"Documents and Settings"\myname\Desktop\test\mysrc\example.hello[/U] example.hello.Server
I know the next below stuff is annoying to add the path of my compiler but that is how I got it working for now. I will fix this later when i have more time to spare.
C:\"Program Files"\Java\jdk1.6.0_11\bin\java
Can some one help me figure how to connect the hello world client server example? May be point out what I am doing wrong.
Thank you for your patience and guidance.
I need to connect this so I can apply other code to this process, to make requests from the client to the server.