Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI Problem  RSS feed

 
Mark Henryson
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying some examples in Java RMI. I am using Head First Java Book and using one of the example given in it:

I have the foloowing setup:

1. Written MyRemote Interface (MyRemote.java)
2. Written MyRemoteImpl (MyRemoteImpl.java)
3. Compiled both the java file and got the class files
4. Created the stub and skeleton by using rmic.

Now I want to register my service in rmiregistry, right?

For that I have opened the new terminal and typed rmiregistry.

But, When I tried to run the MyRemoteImpl, I am getting the below error



How to resolve this?









[ November 02, 2006: Message edited by: Mark Henryson ]
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no spaces in the URL. use "RemoteHello" instead.

pascal
 
Tuhin Ghosh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with pascal.

i also suggest to add the java.net package






tx
tuhin
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i also suggest to add the java.net package


and why ?

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