Click to See Complete Forum and Search --> : Load DLL?


shuli
March 8th, 1999, 10:16 PM
Can Java application call functions in DLL, and how?


Thanks!

Shuli
March 8th, 1999, 10:16 PM
Can Java application call functions in DLL, and how?


Thanks!

Satya Dev
March 15th, 1999, 06:00 AM
Hi! Shuli,


Yes, See Java native Interface chapter in the tutrial.


The way is


System.load (DLL Name as a String);


Satya

shuli
March 16th, 1999, 12:39 AM
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!!

Shuli
March 16th, 1999, 12:39 AM
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!!

Satya Dev
March 16th, 1999, 02:18 AM
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