Class LaygoLib

LayGO for Java programs must start by dynamically loading one of the LayGO API shared libraries.

To load a LayGO library:

try
{
    switch (dllType)
    {
        case LaygoLib.DLL_EXP:

            LaygoLib.loadExperimental();
            break;

        case LaygoLib.DLL_HWI:

            LaygoLib.loadHwi();
            break;

        case LaygoLib.DLL_RPC:

            LaygoLib.loadRpc();
            break;

        case LaygoLib.DLL_STD:

            LaygoLib.loadStandard();
            break;

        default:

            /* Report requested library not known */
            break
    }
}
catch (UnsatisfiedLinkError error)
{
    /* Report error and exit */
}

After all LayGO API processing is complete, the shared library should be unloaded:

LaygoLib.unload();