This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Running an application" Watch "Running an application" New topic
Author

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

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running an application
 
Similar Threads
Is there way to package the application and the jars related in single package?
how to check no of connection
How to make a php application as a java web service?
single sign-on
Passing control from one application to another.