Class PathHacker


  • public class PathHacker
    extends java.lang.Object
    Dynamically adds jars or dll files at runtime to the environment for direct use
    Author:
    T. van der Wiel
    • Constructor Summary

      Constructors 
      Constructor Description
      PathHacker()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addJar​(java.io.File f)  
      static void addJar​(java.lang.String s)  
      static void addJar​(java.net.URL u)
      Adds the given URL to the classpath for direct use
      static void addLibPath​(java.lang.String path)
      ensures the given path is in java.library.path
      static void addLibraryPathFromDirectory​(java.io.File dir)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathHacker

        public PathHacker()
    • Method Detail

      • addLibPath

        public static void addLibPath​(java.lang.String path)
                               throws java.lang.Exception
        ensures the given path is in java.library.path
        Parameters:
        path -
        Throws:
        java.lang.Exception
      • addLibraryPathFromDirectory

        public static void addLibraryPathFromDirectory​(java.io.File dir)
      • addJar

        public static void addJar​(java.lang.String s)
      • addJar

        public static void addJar​(java.io.File f)
      • addJar

        public static void addJar​(java.net.URL u)
        Adds the given URL to the classpath for direct use
        Parameters:
        URL - of the Java Archive