Package ghidra.app.util.headless

# Class GhidraScriptRunner

java.lang.Object
ghidra.app.util.headless.GhidraScriptRunner

All Implemented Interfaces:
  `GhidraLaunchable`

public class GhidraScriptRunner extends Object implements GhidraLaunchable
A simple class for running scripts outside of Ghidra.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GhidraScriptRunner()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected void`
  `initializeApplication(ApplicationLayout applicationLayout, String logFile, boolean useLog4j)`
  `void`
  `launch(GhidraApplicationLayout layout, String[] args)`
  Launches the launchable.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GhidraScriptRunner

    public GhidraScriptRunner()

- ## Method Details

  - ### launch

    public void launch(GhidraApplicationLayout layout, String[] args) throws Exception
    Description copied from interface: `GhidraLaunchable`
    Launches the launchable.
    Specified by:
      `launch` in interface `GhidraLaunchable`
    Parameters:
      `layout` - The application layout to use for the launch.
      `args` - The arguments passed through by the `GhidraLauncher`.
    Throws:
      `Exception` - if there was a problem with the launch.

  - ### initializeApplication

    protected void initializeApplication(ApplicationLayout applicationLayout, String logFile, boolean useLog4j)