I wrote a remote service, MyremoteImpl.java, and used the following command after compiling it.
rmic MyRemoteImpl
I found out that this method involves creating a stub class and a skeleton class, but I can only see the stub class, why?
Another problem that I encountered after starting rmiregistry, I started the service, but it gives the following error, I doubt that I get this error because I am missing a skeleton class?
java.net.MalformedURLException: invalid URL String: Remote Hello at java.rmi.Naming.parseURL(Unknown Source) at java.rmi.Naming.rebind(Unknown Source) at RMIservice.MyRemoteImpl.main(MyRemoteImpl.java:22) Caused by: java.net.URISyntaxException: Illegal character in path at index 6: Remote Hello at java.net.URI$Parser.fail(Unknown Source) at java.net.URI$Parser.checkChars(Unknown Source) at java.net.URI$Parser.parseHierarchical(Unknown Source) at java.net.URI$Parser.parse(Unknown Source) at java.net.URI.<init>(Unknown Source) at java.rmi.Naming.intParseURL(Unknown Source) ... 3 more
Please help me solve this, thanks in advance!
source share