code: public void initResourceDir (String resourceDir)
      {
          // if none was specified, check the resource_dir system property
          if (resourceDir == null) {
              try {
                  resourceDir = System.getProperty("resource_dir");
              } catch (SecurityException se) {
                  // no problem
              }
          }
  
          // if we found no resource directory, don't use one
          if (resourceDir == null) {
              return;
          }
  
          // make sure there's a trailing slash
          if (!resourceDir.endsWith(File.separator)) {
              resourceDir += File.separator;
          }
          _rdir = new File(resourceDir);
      }
docs: (Re)initializes the directory to search for resource files.
  
  @param resourceDir the directory path, or <code>null</code> to set the resource dir to
  the value of the <code>resource_dir</code> system property.