System.err.println(Main.messages.getString("gcjwebplugin.no_input_files"));
System.err.println(Messages.getString("Main.NoInputFiles"));
  public static void main(String[] args) throws IOException  {    parser = new ClasspathToolParser("appletviewer", true);    parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL...");    OptionGroup attributeGroup = new OptionGroup("Applet tag options");    attributeGroup.add(new Option("code", Main.messages.getString                                  ("gcjwebplugin.code_description"),                                  "CODE")      {        public void parsed(String argument) throws OptionException        {          code = argument;        }      });    attributeGroup.add(new Option("codebase", Main.messages.getString                                  ("gcjwebplugin.codebase_description"),                                  "CODEBASE")      {        public void parsed(String argument) throws OptionException        {          codebase = argument;        }      });    attributeGroup.add(new Option("archive", Main.messages.getString                                  ("gcjwebplugin.archive_description"),                                  "ARCHIVE")      {        public void parsed(String argument) throws OptionException        {          archive = argument;        }      });    attributeGroup.add(new Option("width", Main.messages.getString                                  ("gcjwebplugin.width_description"),                                  "WIDTH")      {        public void parsed(String argument) throws OptionException        {          dimensions.width = Integer.parseInt(argument);        }      });    attributeGroup.add(new Option("height", Main.messages.getString                                  ("gcjwebplugin.height_description"),                                  "HEIGHT")      {        public void parsed(String argument) throws OptionException        {          dimensions.height = Integer.parseInt(argument);        }      });    attributeGroup.add(new Option("param", Main.messages.getString                                  ("gcjwebplugin.param_description"),                                  "NAME,VALUE")      {        public void parsed(String argument) throws OptionException        {          parameters.add(argument);        }      });    OptionGroup pluginGroup = new OptionGroup("Plugin option");    pluginGroup.add(new Option("plugin", Main.messages.getString                               ("gcjwebplugin.plugin_description"),                               "INPUT,OUTPUT")      {        public void parsed(String argument) throws OptionException        {          pluginMode = true;          int comma = argument.indexOf(',');          pipeInName = argument.substring(0, comma);          pipeOutName = argument.substring(comma + 1);        }      });    OptionGroup debuggingGroup = new OptionGroup("Debugging option");    debuggingGroup.add(new Option("verbose", Main.messages.getString                                  ("gcjwebplugin.verbose_description"),                                  (String) null)      {        public void parsed(String argument) throws OptionException        {          verbose = true;        }      });    OptionGroup compatibilityGroup = new OptionGroup("Compatibility options");    compatibilityGroup.add(new Option("debug", Main.messages.getString                                      ("gcjwebplugin.debug_description"),                                      (String) null)      {        public void parsed(String argument) throws OptionException        {          // Currently ignored.        }      });    compatibilityGroup.add(new Option("encoding", Main.messages.getString                                      ("gcjwebplugin.encoding_description"),                                      "CHARSET")      {        public void parsed(String argument) throws OptionException        {          // FIXME: We should probably be using          // java.nio.charset.CharsetDecoder to handle the encoding.  What          // is the status of Classpath's implementation?        }      });    parser.add(attributeGroup);    parser.add(pluginGroup);    parser.add(debuggingGroup);    parser.add(compatibilityGroup);    String[] urls = parser.parse(args);    // Print arguments.    printArguments(args);    args = urls;    if (dimensions.height < 0)      dimensions.height = 200;    if (dimensions.width < 0)      dimensions.width = (int) (1.6 * dimensions.height);    //System.setSecurityManager(new AppletSecurityManager(pluginMode));    if (pluginMode)      {        // Plugin will warn user about missing security manager.	InputStream in;	OutputStream out;        in = new FileInputStream(pipeInName);        out = new FileOutputStream(pipeOutName);	PluginAppletViewer.start(in, out);      }    else      {        // Warn user about missing security manager.        System.err.println("WARNING: CURRENTLY GAPPLETVIEWER RUNS WITH NO SECURITY MANAGER.\n\n"                           + "THIS MEANS THAT APPLETS YOU LOAD CAN DO ANYTHING A JAVA APPLICATION\n"                           + "THAT YOU DOWNLOAD AND RUN CAN DO.  BE *VERY* CAREFUL WHICH APPLETS YOU RUN.\n"                           + "DO NOT USE GAPPLETVIEWER ON YOUR SYSTEM IF YOUR SYSTEM STORES IMPORTANT DATA.\n"                           + "THIS DATA CAN BE DESTROYED OR STOLEN IF YOU LOAD A MALICIOUS APPLET.\n");        System.err.println("[press 'c' or 'C' to continue or anything else to quit]");        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));        String response = null;        try          {            response = stdin.readLine();          }        catch (IOException e)          {            System.err.println("failed to read response to warning message: " + e);            System.exit(1);          }        if (!(response.equals("c") || response.equals("C")))          {            System.exit(0);          }        if (code == null)          {            // The --code option wasn't given and there are no URL            // arguments so we have nothing to work with.            if (args.length == 0)              {                System.err.println(Main.messages.getString("gcjwebplugin.no_input_files"));                System.exit(1);              }            // Create a standalone appletviewer from a list of URLs.            new StandaloneAppletViewer(args);          }        else          {            // Create a standalone appletviewer from the --code            // option.            new StandaloneAppletViewer(code, codebase, archive, parameters, dimensions);          }      }  }