Package ghidra
Class GhidraLauncher
- java.lang.Object
-
- ghidra.GhidraLauncher
-
public class GhidraLauncher extends java.lang.ObjectClass to build the Ghidra classpath, add it to theGhidraClassLoader, and start the desiredGhidraLaunchablethat'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 voidmain(java.lang.String[] args)Launches the givenGhidraLaunchable, passing through the args to it.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionLaunches the givenGhidraLaunchable, 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'sGhidraLaunchable.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.
-
-