The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

question on RMI

Posted by yan fei on March 05, 2001 at 10:38 PM

I am trying to run an RMI example from a book,I compiled the server-side code,I generated the stub and the skeleton successfully,and I started the rmiregistry,but when I try to
run the server by typing:

C:\fei\java>java -Djava.rmi.server -classpath c:\fei\java ChatServerImpl

I got the error message below:

Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: no further information

Any one know what's going wrong?

thanks!




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us