Warning: include(header.php) [function.include]: failed to open stream: No such file or directory in /home/content/91/8203491/html/Shayne/RMI/registryNames.html on line 7

Warning: include() [function.include]: Failed opening 'header.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/91/8203491/html/Shayne/RMI/registryNames.html on line 7

RegistryNames.java

/*
  A program to see if a RMI registry is running and what names are in it
  USAGE: java RegistryNames [port number]
*/

import java.rmi.registry.*;
import java.rmi.*;

public class RegistryNames
{
    public static void main(String[] args)
    {
        if(args.length > 1)
        {
            System.out.println("USAGE: java RegistryNames [port number]");
            return;
        }
        String[] names;
        int portNumber = (args.length == 1) ? 
            Integer.parseInt(args[0]) : Registry.REGISTRY_PORT;
        try
        {
            names = LocateRegistry.getRegistry(portNumber).list();
        }
        catch(RemoteException e)
        {
            System.out.println("Cannot connect to RMI registry on port " + 
                               portNumber);
            return;
        }
        System.out.println("RMI registry is running on port " + portNumber +
                           ((portNumber == Registry.REGISTRY_PORT) ?
                            " (the default port number)" : 
                            " (a user defined port number)"));
        System.out.println((names.length == 0) ? "NO names are in use." :
                           "The following name" + ((names.length == 1) ? 
                           " is" : "s are") + " in use:");
        for(int i = 0; i < names.length; i++)
        {
            System.out.println(names[i]);
        }
    }
}

Warning: include(footer.php) [function.include]: failed to open stream: No such file or directory in /home/content/91/8203491/html/Shayne/RMI/registryNames.html on line 60

Warning: include() [function.include]: Failed opening 'footer.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/91/8203491/html/Shayne/RMI/registryNames.html on line 60