java.lang.Object
net.i2p.installer.Main

public class Mainextends Object
Entry point for the installer's utility jar: dispatches to one of the other classes in this package, because the installer can only start a jar with a single main class. Usage: java -jar utility.jar copy|delete|exec|fixwinpaths args...
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
    The command line shown when the installer is called wrongly
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Run the command named by the first argument, passing it the rest.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Main

      public Main()
      Constructor. The class is only ever entered through main(), which dispatches straight to one of the command classes; an instance is a placeholder for that entry point.
  • Method Details

    • main

      public static void main(String[] args)
      Run the command named by the first argument, passing it the rest.
      Parameters:
      args - command and its arguments
      Throws:
      IllegalArgumentException - if no command was given, or it is not one of copy, delete, exec, fixwinpaths