Meaningless Drivel is fun!
The moose likes Distributed Java and the fly likes Running an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Running an application" Watch "Running an application" New topic

Running an application

Lucky Singh
Ranch Hand

Joined: Jan 19, 2004
Posts: 125
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- (which is also an applet)

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?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Pretty much the same as the way to run the application in the RMI tutorial...

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.
I agree. Here's the link:
subject: Running an application
It's not a secret anymore!