• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rmi Unknown host

 
mark smith
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • 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?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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: 251
  • Mark post as helpful
  • send pies
  • 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 Java Spring
  • Mark post as helpful
  • send pies
  • 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: 251
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic