Class MatlabEnginePool


  • public class MatlabEnginePool
    extends java.lang.Object
    • Field Detail

      • systemURLClassLoader

        protected static java.net.URLClassLoader systemURLClassLoader
      • libraryPath

        protected static java.lang.String libraryPath
      • engineJarPath

        protected static java.lang.String engineJarPath
      • matlabEngineClass

        protected java.lang.Class<?> matlabEngineClass
      • projectEngine

        protected java.util.Map<java.lang.String,​MatlabEngine> projectEngine
    • Method Detail

      • reset

        public static void reset()
      • getMatlabEngine

        public MatlabEngine getMatlabEngine()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getEngineJarPath

        public java.lang.String getEngineJarPath()
      • getLibraryPath

        public java.lang.String getLibraryPath()
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resolveFromEnv

        public static boolean resolveFromEnv()
        Attempts to locate a MATLAB installation.
        Returns:
        true iff the paths could be resolved.
        Since:
        1.6
      • resolve

        public static boolean resolve​(java.lang.String library,
                                      java.lang.String engineJar)
        Parameters:
        library - The MATLAB library path.
        engineJar - The MATLAB engine.jar file path.
        Returns:
        true iff the paths exist.