Package ghidra

Class GhidraLauncher


  • public class GhidraLauncher
    extends java.lang.Object
    Class to build the Ghidra classpath, add it to the GhidraClassLoader, and start the desired GhidraLaunchable that's passed in as a command line argument.
    • Constructor Summary

      Constructors 
      Constructor Description
      GhidraLauncher()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> findJarsInDir​(ResourceFile dir)
      Searches the given directory (non-recursively) for jars and returns their paths in a list.
      static void main​(java.lang.String[] args)
      Launches the given GhidraLaunchable, passing through the args to it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GhidraLauncher

        public GhidraLauncher()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Launches the given GhidraLaunchable, passing through the args to it.
        Parameters:
        args - The first argument is the name of the class to launch. The remaining args get passed through to the class's GhidraLaunchable.launch(ghidra.GhidraApplicationLayout, java.lang.String[]) method.
        Throws:
        java.lang.Exception - If there was a problem launching. See the exception's message for more details on what went wrong.
      • findJarsInDir

        public static java.util.List<java.lang.String> findJarsInDir​(ResourceFile dir)
        Searches the given directory (non-recursively) for jars and returns their paths in a list.
        Parameters:
        dir - The directory to search for jars in.
        Returns:
        A list of discovered jar paths.