Class Main

java.lang.Object
org.apache.commons.net.examples.Main

public class Main extends Object
Helper application for example classes.
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args) throws Throwable
      Helper application for example classes. Lists available classes, and provides shorthand invocation. For example:
      java -jar commons-net-examples-m.n.jar FTPClientExample -l host user password
      Parameters:
      args - the first argument is used to name the class; remaining arguments are passed to the target class.
      Throws:
      Throwable - if an error occurs