Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
System.loadLibrary() - Loading DLL for JNI Interface
An application needs to load a library before it starts to run, how to code?
✍: FYIcenter
One option is to use a static block to load a library before anything is called. For example,
class Test {
static {
System.loadLibrary("myApp.dll");
}
....
}
When you call new Test(), the static block will be called first before any initialization happens. Note that the static block position may matter.
2007-03-03, 8961👍, 0💬
Popular Posts:
How many types of validation controls are provided by ASP.NET ? There are six main types of validati...
Who Developed HTML? HTML was originally developed by Tim Berners-Lee while at CERN, and popularized ...
What metrics will you look at in order to see the project is moving successfully? Most metric sets d...
How do we host a WCF service in IIS? Note: - The best to know how to host a WCF in IIS is by doing a...
What are unadjusted function points and how is it calculated? Unadjusted function points = ILF + EIF...