Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
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, 9064👍, 0💬
Popular Posts:
How was XML handled during COM times? During COM it was done by using MSXML 4.0. So old languages li...
How do I use a scriptlet to initialize a newly instantiated bean? A jsp:useBean action may optionall...
What is Shell scripting A shell script is a script written for the shell, or command line interprete...
How do you estimate maintenance project and change requests?
How To Create an Add-to-My-Yahoo Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News ...