Package org.apache.jmeter
Class NewDriver
- java.lang.Object
-
- org.apache.jmeter.NewDriver
-
public final class NewDriver extends Object
Main class for JMeter - sets up initial classpath and the loader.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddPath(String path)Add a directory or jar to the loader and system classpaths.static voidaddURL(String path)Add a URL to the loader classpath only; does not update the system classpath.static voidaddURL(URL url)Add a URL to the loader classpath only; does not update the system classpath.static StringgetJMeterDir()Get the directory where JMeter is installed.static voidmain(String[] args)The main program which actually runs JMeter.
-
-
-
Method Detail
-
addURL
public static void addURL(String path)
Add a URL to the loader classpath only; does not update the system classpath.- Parameters:
path- to be added.
-
addURL
public static void addURL(URL url)
Add a URL to the loader classpath only; does not update the system classpath.- Parameters:
url- TheURLto add to the classpath
-
addPath
public static void addPath(String path) throws MalformedURLException
Add a directory or jar to the loader and system classpaths.- Parameters:
path- to add to the loader and system classpath- Throws:
MalformedURLException- ifpathcan not be transformed to a validURL
-
getJMeterDir
public static String getJMeterDir()
Get the directory where JMeter is installed. This is the absolute path name.- Returns:
- the directory where JMeter is installed.
-
main
public static void main(String[] args)
The main program which actually runs JMeter.- Parameters:
args- the command line arguments
-
-