public class ClassLoaderUtils extends Object
Constructor and Description |
---|
ClassLoaderUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addFile(File aFile)
Adds a file to the classpath.
|
static void |
addFile(String aFilename)
Adds a file to the classpath.
|
static void |
addJarsInDirectory(File aDirectory)
Adds all jars in the given directory to the class path.
|
static void |
addURL(URL aUrl)
Adds a url to the classpath.
|
public static void addJarsInDirectory(File aDirectory) throws IOException
aDirectory
- Directory.IOException
public static void addFile(String aFilename) throws IOException
aFilename
- Filename to add.IOException
public static void addFile(File aFile) throws IOException
aFile
- File to add.IOException
public static void addURL(URL aUrl) throws IOException
aUrl
- Url to add.IOException
Copyright © 2024. All rights reserved.