Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 7745👍, 0💬
Popular Posts:
How do you estimate maintenance project and change requests?
What is a measure in OLAP ? Measures are the key performance indicator that you want to evaluate. To...
What does a well-written Object Oriented program look like? A well-written object oriented program e...
How To Increment Dates by 1? - MySQL FAQs - Introduction to SQL Date and Time Handling If you have a...
If client side validation is enabled in your Web page, does that mean server side code is not run? W...