• Post Reply Bookmark Topic Watch Topic
  • New Topic

rmi problem when trying to run the server  RSS feed

Ray Smilgius
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Microsoft(R) Windows 98
(C)Copyright Microsoft Corp 1981-1999.
Active Connections
Proto Local Address Foreign Address State
C:\>java FibonacciServer
Exception in FibonacciServer: java.rmi.server.ExportException: object already ex
when I try to run the server and this is my exception above I read that this exception means that the port is in use by another VM.....
I really need to figure this out for I am using RMI in my developer assignment..
any suggestions???
Thanks Ray
this example is from JAVA Network Programming O'REILLY 2nd edition
the website of the 4 needed files are http://metalab.unc.edu/javafaq/books/jnp2e
click on Examples then click chapter 18. get examples 18-1, 18-2,18-3,18-4.
i started the registry without error my classpath is correct..but when I java the server I recieve the same exception..
thanks I am using windows 98 2nd edition both machines peer-to-peer.

import java.net.MalformedURLException;
import java.rmi.*;

public class FibonacciServer {
public static void main(String[] args) {

try {
FibonacciImpl f = new FibonacciImpl();
Naming.rebind("fibonacci", f);
System.out.println("Fibonacci Server ready.");
catch (RemoteException re) {
System.out.println("Exception in FibonacciServer: " + re);
catch (MalformedURLException e) {
System.out.println("MalformedURLException " + e);

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!