This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi all, I have just created a simple RMI application. I am using Putty and X-Deep. The files I have in my directory are- RemoteInterface.java RemoteImpl.java Client.java (which is also an applet) Client.html
The application is similar to the example given for beginners on the Sun website. All classes are compiling without any errors. Can someone please give me the instructions as to how to run the application?
You're going to need to run rmic on your RemoteImpl class to produce a stub and skeleton, and you're going to need some HTML to have a page to hold the applet. You'll probably want to JAR your classes into one JAR file. Then you're going to need to deploy your JAR and HTML to the server machine. rmiregistry needs to be running on the server machine, and you also need your server code to be running on your server machine. Open a browser and call the HTML web page that contains your applet to start the client.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.