public class MatlabEngineUtil extends Object
Constructor and Description |
---|
MatlabEngineUtil() |
public static String[] resolvePaths() throws IllegalStateException, IllegalArgumentException
#PROPERTY_MATLAB_PATH
, #PROPERTY_LIBRARY_PATH
, #PROPERTY_ENGINE_JAR_PATH
}IllegalStateException
IllegalArgumentException
resolvePaths(String[])
public static void resolvePaths(String[] currentPaths) throws IllegalStateException, IllegalArgumentException
currentPaths
- Contains the paths to determine in the following order: #PROPERTY_MATLAB_PATH
- #PROPERTY_LIBRARY_PATH
- #PROPERTY_ENGINE_JAR_PATH
IllegalArgumentException
- If the paths array is null or not length 3.IllegalStateException
- If the paths couldn't be resolved.public static String getLibraryPathFromEnv()
public static String getEngineJarPathFromEnv()
public static String getMatlabPathFromEnv()
public static Object parseMatlabEngineVariable(MatlabEngine engine, String variableName) throws MatlabException
MatlabException
Copyright © 2020. All rights reserved.