Package org.processmining.framework.util
Class PathHacker
- java.lang.Object
-
- org.processmining.framework.util.PathHacker
-
public class PathHacker extends java.lang.Object
Dynamically adds jars or dll files at runtime to the environment for direct use- Author:
- T. van der Wiel
-
-
Constructor Summary
Constructors Constructor Description PathHacker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addJar(java.io.File f)
static void
addJar(java.lang.String s)
static void
addJar(java.net.URL u)
Adds the given URL to the classpath for direct usestatic void
addLibPath(java.lang.String path)
ensures the given path is in java.library.pathstatic void
addLibraryPathFromDirectory(java.io.File dir)
-
-
-
Method Detail
-
addLibPath
public static void addLibPath(java.lang.String path) throws java.lang.Exception
ensures the given path is in java.library.path- Parameters:
path
-- Throws:
java.lang.Exception
-
addLibraryPathFromDirectory
public static void addLibraryPathFromDirectory(java.io.File dir)
-
addJar
public static void addJar(java.lang.String s)
-
addJar
public static void addJar(java.io.File f)
-
addJar
public static void addJar(java.net.URL u)
Adds the given URL to the classpath for direct use- Parameters:
URL
- of the Java Archive
-
-