com.senn.magic.cp
Class ClassPathHacker

java.lang.Object
  extended by com.senn.magic.cp.ClassPathHacker

public final class ClassPathHacker
extends Object

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:

Since:
3.3
Author:
Bart Thierens, Antony Miguel (antony_miguel @ http://forums.sun.com) *
Last modification: 06/05/2010

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

addFile

public static void addFile(String path)
                    throws IOException
Adds a file to the Java classpath

Parameters:
path - path of the file to add
Throws:
IOException
See Also:
addFile(File)

addFile

public static void addFile(File file)
                    throws IOException
Adds a file to the Java classpath

Parameters:
file - file to add
Throws:
IOException
See Also:
addURL(URL)

addURL

public static void addURL(URL url)
                   throws IOException
Adds a file to the Java classpath

Parameters:
url - url of the file to add
Throws:
IOException