Can Java application call functions in DLL, and how?
Thanks!
Printable View
Can Java application call functions in DLL, and how?
Thanks!
Hi! Shuli,
Yes, See Java native Interface chapter in the tutrial.
The way is
System.load (DLL Name as a String);
Satya
Thank you!
My applet calls System.load(dllname),
and I got a java.lang.securityException .
Is there something wrong, or it's just a
security problem with applet??
Thanks for your help!!
The following is from Java Native Inteface tutorial. Check the security managet.
Security consideration: Note that the ability to load dynamic libraries is subject to approval by the current security manager. When working with native methods, you must load dynamic libraries. Some applets may not be able to use native methods because the browser or viewer they are running in restricts the ability to load dynamic libraries. See Security Restrictions for information about the security restrictions placed on applets.
Regards,
Satya