Class Bootstrapper

java.lang.Object
org.codehaus.classworlds.uberjar.boot.Bootstrapper

public class Bootstrapper extends Object
Bootstrapping entry-point.

The Bootstrapper is to be used for standalone jars which carry all dependency jars within them. The layout for the dependency jar should be similar to:

    myjar/
          classworlds.conf
          org/
              codehaus/
                     classworlds/
                                 boot/
                                 protocol/
          lib/
              myapp.jar
              depOne.jar
              depTwo.jar
  
Version:
$Id: Bootstrapper.java 78 2004-07-01 13:59:13Z jvanzyl $
Author:
Jason van Zyl, bob mcwhirter
  • Field Details

    • LAUNCHER_CLASS_NAME

      public static final String LAUNCHER_CLASS_NAME
      Main classworlds entry class.
      See Also:
    • args

      private String[] args
      Command-line args.
    • classLoader

      private InitialClassLoader classLoader
      Initial bootstrapping classloader.
  • Constructor Details

    • Bootstrapper

      public Bootstrapper(String[] args) throws Exception
      Construct.
      Parameters:
      args - Command-line arguments.
      Throws:
      Exception - If an error occurs attempting to perform bootstrap initialization.
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Main entry-point.
      Parameters:
      args - Command-line arguments.
      Throws:
      Exception - If an error occurs.
    • getInitialClassLoader

      protected ClassLoader getInitialClassLoader()
      Retrieve the initial bootstrapping ClassLoader.
      Returns:
      The classloader.
    • bootstrap

      public void bootstrap() throws Exception
      Perform bootstrap.
      Throws:
      Exception - If an error occurs while bootstrapping.