i want to use rmi on local host so i made three things first myremote interface:
2.) myremoteimpl class:
3.)and my remoteclient class :
i first compiled all classes ,then i used rmic to extract stub class from my myremoteimpl(it doesnt gave me skeleton class out); and then in other console started rmiregistry, and then started myremoteimpl.java , so that the server is up . but it gave me javamalformedexeption: invalid url string, what is the reason, i double checked all the things but couldnt resolve the problem.
I have not done RMI in years so decided to try it. I was able to compile your code and reproduce your error. I removed the space between "Remote" and "Hello" as in the following code: and the error went away (actually it was replaced by another error but that's my problem :-). If you absolutely need the space then try using java.net.URLEncoder.
posted 8 years ago
thanks tom for your reply, but this time when i removed the spaces and try to run rmi registry its giving me java.rmi.server.ExportExeption : listen failed on port 1099 , i cant understand what is the problem