Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

RMI Problem  RSS feed

 
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 ]
 
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no spaces in the URL. use "RemoteHello" instead.

pascal
 
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!