I went to find the tutorial section, and am discovering things have changed since I last deployed applets.
Here is the section in the tutorials:
http://docs.oracle.com/javase/tutorial/deployment/applet/getStarted.html
Via “view source” (edit/find: HelloWorld) on that page, here is a quickie template that you can possibly use. That looks a lot like what I’ve done in the past.
<script src="http://www.java.com/js/deployJava.js" type="text/javascript">
</script><script type="text/javascript">
var attributes = { code:'HelloWorld.class',
archive:'examples/dist/applet_HelloWorld/applet_HelloWorld.jar',
width:150, height:30} ;
var parameters = {} ;
deployJava.runApplet(attributes, parameters, '1.4');
</script><
JNLP is needed if you want the Applet to make use of the client computer. If you are not attempting to save or load anything to the client, I think you can safely bypass the JNLP requirements.
If you DO want to allow client access, you don’t have to go as far as getting signing to work, but you will need JNLP and will have to go through steps of asking the client user to OK the access. Signing adds a level of security.
In the only casual applet I wrote which accesses the client, I didn’t bother with Signing as it was taking a fair bit of effort for me to figure it out. The only people who were going to look at the applet knew me personally, or via this site, and trusted I hadn’t embedded a virus.