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.IOExceptionpublic static void addFile(String aFilename) throws IOException
aFilename - Filename to add.IOExceptionpublic static void addFile(File aFile) throws IOException
aFile - File to add.IOExceptionpublic static void addURL(URL aUrl) throws IOException
aUrl - Url to add.IOExceptionCopyright © 2025. All rights reserved.