Class ServerStarter


  • public class ServerStarter
    extends Object
    Starts the core XMPP server. A bootstrap class that configures classloaders to ensure easy, dynamic server startup. This class should be for standalone mode only. Openfire servers launched through a J2EE container (servlet/EJB) will use those environment's classloading facilities to ensure proper startup.

    Tasks:

    • Unpack any pack files in the lib directory (Pack200 encoded JAR files).
    • Add all jars in the lib directory to the classpath.
    • Add the config directory to the classpath for loadResource()
    • Start the server
    Note: if the environment property openfire.lib.dir is specified ServerStarter will attempt to use this value as the value for openfire's lib directory. If the property is not specified the default value of ../lib will be used.
    Author:
    Iain Shigeoka
    • Constructor Detail

      • ServerStarter

        public ServerStarter()
    • Method Detail

      • main

        public static void main​(String[] args)