public class ClassLauncher extends Object
Except for ImageJ 1.x, for backwards-compatibility, the ImageJ launcher calls all Java main classes through this class, to be able to generate appropriate class paths using the platform-independent convenience provided by Java's class library.
Modifier and Type | Field and Description |
---|---|
protected static boolean |
debug |
protected static String[] |
originalArguments |
Constructor and Description |
---|
ClassLauncher() |
Modifier and Type | Method and Description |
---|---|
protected static void |
launch(ClassLoader classLoader,
String className,
String[] arguments) |
static void |
main(String[] arguments)
Patch ij.jar and launch the class given as first argument passing on the
remaining arguments
|
protected static void |
patchIJ1(ClassLoader classLoader) |
protected static String[] |
prepend(String[] array,
String... before) |
static void |
restart() |
protected static void |
run(String[] arguments) |
protected static String[] |
slice(String[] array,
int from) |
protected static String[] |
slice(String[] array,
int from,
int to) |
protected static boolean debug
protected static String[] originalArguments
public static void main(String[] arguments)
arguments
- A list containing the name of the class whose main()
method is to be called with the remaining arguments.public static void restart()
protected static void run(String[] arguments)
protected static void patchIJ1(ClassLoader classLoader) throws ClassNotFoundException, IllegalAccessException, InstantiationException
protected static void launch(ClassLoader classLoader, String className, String[] arguments)
Copyright © 2014–2022 ImageJ. All rights reserved.