public final class ClassPath
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addToClassPath(java.io.File file)
Adds a
File to the class-path. |
static void |
addToClassPath(java.util.List<java.io.File> files)
Adds all
File s in files to the class-path. |
public static void addToClassPath(java.io.File file)
File
to the class-path.
If file
is null
, a NullPointerException
will be thrown.
If this "hack" is not supported, an UnsupportedOperationException
will be thrown.
file
- the File
to add to the class-pathjava.lang.NullPointerException
- thrown if, and only if, file
is null
java.lang.UnsupportedOperationException
- thrown if, and only if, this "hack" is not supportedpublic static void addToClassPath(java.util.List<java.io.File> files)
File
s in files
to the class-path.
If either files
or at least one of its elements are null
, a NullPointerException
will be thrown.
If this "hack" is not supported, an UnsupportedOperationException
will be thrown.
files
- the List
of File
to add to the class-pathjava.lang.NullPointerException
- thrown if, and only if, either files
or at least one of its elements are null
java.lang.UnsupportedOperationException
- thrown if, and only if, this "hack" is not supported