Class ClasspathUtil

java.lang.Object
net.sf.jailer.util.ClasspathUtil

public class ClasspathUtil extends Object
Loads jar files dynamically.
Author:
Ralf Wisser
  • Constructor Details

    • ClasspathUtil

      public ClasspathUtil()
  • Method Details

    • toURLArray

      public static URL[] toURLArray(String jarName1, String jarName2, String jarName3, String jarName4) throws FileNotFoundException
      Converts up to four jar file names to an array of URLs.
      Parameters:
      jarName1 - first jar file name, or null
      jarName2 - second jar file name, or null
      jarName3 - third jar file name, or null
      jarName4 - fourth jar file name, or null
      Returns:
      array of URLs for the given jar files
      Throws:
      FileNotFoundException - if any of the specified jar files cannot be found