ImageGearJava Project > com.accusoft.imagegear.core Package : ImGearNativePath Class |
At the first use of ImGearLicense it automatically looks for a path containing ImageGear Java's igjcommonnative2 native library. It does this by first finding the operating system architecture and then looking for either the environment variable, IMAGE_GEAR_64BIT_PATH, for 64 bits, or IMAGE_GEAR_32BIT_PATH, for 32 bits. These are expected to contain paths to the appropriate folder of native libraries.
If the variable does not exist, it looks in the components of the java.library.path System property. You can set the path to the native libraries to appear in this property in two ways:
Setting the operating system's path in the first way will prevent you from using the 32 and 64 bit SDKs simultaneously, since it will always find the version that is first.
The last place it looks is in a bin peer folder of the one the SDK jars were loaded from.
You can specify the native library location programmatically by calling the method, setPath before calling any licensing code, like ImGearLicense.setSolutionName, or after, if the search above does not find a path.
public class ImGearNativePath extends Object |
java.lang.Object
com.accusoft.imagegear.core.ImGearNativePath