• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

rmi Unknown host

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

i begin with rmi...

i tried the sun turorial
http://java.sun.com/docs/books/tutorial/rmi/index.html

now i try to run the server...
http://java.sun.com/docs/books/tutorial/rmi/running.html



i get the error



when i compiled class, i don't get any errors...

i tried to change log-a3326-12 to localhost... but i get the same error...

any idea?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Change the string in the engine.ComputeEngine class at line 25 -


from "host" to your real host name.
 
mark smith
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok the server run now... it display me: ComputeEngine bound

for the client

in my folder
/home/sonia/src/client

i have ComputePi.class

in my folder
/home/sonia/public_html/classes
client
compute.jar
java.policy

in my folder
/home/sonia/public_html/classes/client
Pi.class

now i try to run the client, i get:



any idea?

the client and server are on the same host...
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you setting the classpath to find the stub before running the client?

If you're doing dynamic classloading, is the HTTP server running, and is the code at the URL the client is specifying?
 
mark smith
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nathan Pruett:
Are you setting the classpath to find the stub before running the client?

If you're doing dynamic classloading, is the HTTP server running, and is the code at the URL the client is specifying?



the problem was i not copied the stub on the client...
i don't understand why i need to copy it... i thinked the client download it from the server...

thanks
[ January 12, 2006: Message edited by: Marc collin ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic