theConfig 10.0
Loading...
Searching...
No Matches
LcConfig_Sys_JV_API

Basic features and Startup … More...

+ Collaboration diagram for LcConfig_Sys_JV_API:

Functions

static void jvlcconfig.LcConfig.SetupTmpl ()
 Task: initialize the JAVAjvlcconfig connectivity.
 

Detailed Description

Basic features and Startup …

Function Documentation

◆ SetupTmpl()

static void jvlcconfig.LcConfig.SetupTmpl ( )
static

Task: initialize the JAVAjvlcconfig connectivity.

An external C library is required to use the jvlcconfig package. This library needs to be loaded very early in order to set up the jvlcconfig environment properly. Normally the "setup" is done automatically when using a class from the jvlcconfig package.

‍Unfortunately, sometimes the "Setup" is called too late and the application fails with a constructor-error.

The best way to achieve proper startup is to add a static-constructor to the main-application-class

public class MyClass extends ... {
static {
}
// ...
}
static void Setup()
Java: [static] Setup() → C-API setup jvlcconfig internal memory …

Definition at line 92 of file LcConfig.java.

92 {
93 if (first) return;
94 first = true;
95 System.loadLibrary("jvlcconfig");
96 }
+ Here is the caller graph for this function: