Posted By:
Elliot_Crider
Posted On:
Saturday, April 7, 2001 03:45 PM
I am trying to run the first RMI example in Chapter 18 of O'Reilly's Java Network Programming 2nd. Edition by Elliotte Rusty Harold. I am trying to perform the steps on page 608-609 after compiling all of the source code with JDK 1.3 on a Windows 98 machine. I am trying to run the server and client on a single macine without a web server. I have all of the client code (FibonaciClient.class, Fibonocci.class, and FibonacciImpl_Stub.class) in one directory and all of the server code (FibonacciImpl_Stub.class, FibonacciImpl_Skel.class, Fibonacci.class, FibonacciImpl.class, and FibonocciServer.class) in another. I startup two separate DOS windows - one for client, one for server. I
More>>
I am trying to run the first RMI example in Chapter 18 of O'Reilly's
Java Network Programming 2nd. Edition by Elliotte Rusty Harold.
I am trying to perform the steps on page 608-609 after compiling
all of the source code with JDK 1.3 on a Windows 98 machine.
I am trying to run the server and client on a single macine without
a web server. I have all of the client code (FibonaciClient.class,
Fibonocci.class, and FibonacciImpl_Stub.class) in one directory and
all of the server code (FibonacciImpl_Stub.class, FibonacciImpl_Skel.class,
Fibonacci.class, FibonacciImpl.class, and FibonocciServer.class) in another.
I startup two separate DOS windows - one for client, one for server. I
set the class path in each to their respective directories. From the
server DOS window, I enter "start rmiregistry". Then, "java FibonacciServer".
I continually get "Exception in FibonacciServer: java.rmi.server.ExportException:
object already exported".
What is causing this?
There is only one export statement in all of the code. I have not altered the
code at all. The source code is available at:
http://metalab.unc.edu/javafaq/books/jnp2e
<<Less