public class ClassPath
extends java.lang.Object
ClassPath
is also known as the ClassPathHacker
and
enables adding new files to the classpath.Constructor and Description |
---|
ClassPath() |
Modifier and Type | Method and Description |
---|---|
static void |
addFile(java.io.File f)
Adds a new
File to the classpath. |
static void |
addFile(java.lang.String s)
Adds a new
File to the classpath. |
static void |
addURL(java.net.URL u)
Adds a new
File to the classpath. |
public static void addFile(java.lang.String s) throws java.io.IOException
File
to the classpath.s
- the name of the filejava.io.IOException
public static void addFile(java.io.File f) throws java.io.IOException
File
to the classpath.f
- the filejava.io.IOException
public static void addURL(java.net.URL u) throws java.io.IOException
File
to the classpath.u
- the URL
of the filejava.io.IOException