API Reference
| Classic JavaDoc |
Outlook.setLibraryPath
public static void setLibraryPath(String pFilePath)
Sets the path to the native DLL library file (moyocore.dll).
Throws:
If the library file is not in a location defined by the java.library.path
system
property, this method can be used to specify the exact location of the file.
Alternatively, the java.library.path
property can be defined when launching the Java application:
java -Djava.library.path=[Folder where the library file is] ...
This static method has to be called BEFORE creating an instance of the Outlook object.
Usage example:
Outlook.setLibraryPath("c:\\moyocore.dll");
Outlook outlook = new Outlook();
//...
outlook.dispose();
pFilePath | the path to the native DLL file, including the filename (moyocore.dll) |
ComponentObjectModelException | if the library is already loaded. |
Community comments
Powered by JavaDocPlus