Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Implemet rmi Client on an Applet

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have a RMI app running but now I want to know how implement my client.class on a Applet.
here is the code of my FlightCliente.class:

import java.rmi.*;
import java.util.Vector;

public class FlightClient {
public static void main (String args[]) {
if (args.length == 0) {
System.out.println("\nUsage: java "+" FlightClient flightNo");
try {
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
FlightServer myServer = (FlightServer)

// Serachs For the arrival info only
String arrival = myServer.getArrivalTime(args[0]);
System.out.println("Arrival time of " + args[0] +
" is " + arrival);
} catch (NotBoundException nbe) {
} catch ( mfue) {
} catch (RemoteException re) {

On my applet there is a TextField in which i going to get the flight number, a label which display the information, and a button for submit the flight number.

Thank So much.
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What part of making your client into an applet are you having a problem with?

Do you need help with how to write an applet? Here's Sun's Applet tutorial and a useful part of the Java Tutorial called Anatomy of an Applet.

Do you need help with getting RMI to work with an applet? Sun's Getting Started with RMI has an applet example, and here's another applet RMI example from someone at FSU.
Shiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic