|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.senn.magic.cp.ClassPathHacker
public final class ClassPathHacker
Static class that dynamically adds stuff to the Java classpath.
Almost all credit should go to Antony Miguel (antony_miguel @ http://forums.sun.com).
Limitations:
Method Summary | |
---|---|
static void |
addFile(File file)
Adds a file to the Java classpath |
static void |
addFile(String path)
Adds a file to the Java classpath |
static void |
addURL(URL url)
Adds a file to the Java classpath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addFile(String path) throws IOException
path
- path of the file to add
IOException
addFile(File)
public static void addFile(File file) throws IOException
file
- file to add
IOException
addURL(URL)
public static void addURL(URL url) throws IOException
url
- url of the file to add
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |