12116Applets calling native methodshttp://www.raditha.com/java/jni/Before we actually build the applet we will build a standalone client. It will allow us familiarize ourselves with the Java Native Interface. If you are already using JNI in your work, you can skip ahead to the next step.Java > Tips and Tutorials > Applet BuildingOct 11, 2006
Most users would download and install software from unkown sources without even a blink of an eye. Sometimes these downloads contain trojans, worms, viruses and many other kinds of unfriendly creatures. Yet the same users are very worried about applets having access to their hard disk. Because of these unfounded fears applets are forced into a sandbox from which they cannot escape out of without the user's permission.
Before we actually build the applet we will build a standalone client. It will allow us familiarize ourselves with the Java Native Interface. If you are already using JNI in your work, you can skip ahead to the next step.
If you're behind a firewall, applets will fail even if you've allowed Applet Host Access. This is because the firewall prevents the browser from identifying the host that the applet came from. Setting your browser to allow Unrestricted Access (i.e. the applet can talk to any host on the network) would resolve the problem but is not generally a good idea because it could undermine your firewall (a hostile applet could read information from hosts on your secure network and then retransmit it to an external host).
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.