Recently i had a task to read and update a specific cell in a csv for that i used chilkat csv libs. But what i dont understand is why we need a static block to load the chilkat library even after adding the jar file to Reference library in Eclipse project.
The below is the static block code used
static {
try {
System.loadLibrary("chilkat");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}