The OpenD Programming Language

SharedLibLoader.load

Finds and loads any version of a shared library greater than or equal to the required mimimum version, using this loader's default shared library names.

If multiple library names are specified as default, a SharedLibLoadException will only be thrown if all of the libraries fail to load. It will be the head of an exceptin chain containing one instance of the exception for each library that failed.

Parameters

minRequiredVersion SharedLibVersion

the minimum version of the library that is acceptable. Subclasses are free to ignore this.

Throws

SharedLibLoadException if the shared library or one of its dependencies cannot be found on the file system. SymbolLoadException if an expected symbol is missing from the library.

Examples

If this loader supports versions 2.0 and 2.1 of a shared library, passing a SharedLibVersion with the major field set to 2 and the minor field set to 0 will cause the loader to load version 2.0 if version 2.1 is not available on the system.

Meta