Can I load .dll from server to client within applet, and then call methods of loaded .dll (using JNI) on client side?
Can I load .dll from server to client within applet, and then call methods
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Certainly. The applet will need to be digitally signed by the developer, and trusted by the end user (they click ‘OK’ when prompted). Put the natives in the root of a Jar and add it to the run-time class-path of the applet, using a reference in the
archiveattribute.Using the traditional method of deploying natives to an applet using the
archiveattribute has the disadvantage that every client gets the natives for Windows, OS X and *nix. 3 times as many natives as they actually need.A recent (Java Plug-In 2, introduced in Sun’s version 1.6.0_10) ability is to launch embedded applets using Java Web Start, which then allows us to partition the download of natives for the user. Each OS will get only the natives it needs.
It is specified in the
resourcessection.E.G. from docs.
Any resources section with no
osorarchattribute will be downloaded by all JWS clients, the rest only by those that match.