PCH answer small Embedded Java Program.
Java applets
Applet
One defense against a hostile java applet is to disable applet functionality on the computer. This would prevent all applets - hostile, benign, and beneficial from executing.
By Embedding it into a HTML page, create a new file with the extension .html (like app.html) insert following code: No Java 2 SDK, Standard Edition v 1.4.2 support for APPLET!! Adjust the code for your applet file (can't help there i am not a java programmer) or just use : No Java 2 SDK, Standard Edition v 1.4.2 support for APPLET!! but i recommend the first because the applet tag is deprecated and not supported in XHTML
A Java applet is embedded within a web page, while a Java application will run directly on your computer.
Any Java class that extends java.applet.Applet is an applet. http://java.sun.com/j2se/1.5.0/docs/api/java/applet/Applet.html
There is nothing called DOS applet.. You can run Java applet from DOS..
PCH answer small Embedded Java Program.
Applet: It is run on browser, i mean client side. Servlet: It is run on server, i mean server side.
Java applets
Java Applet is an application designed to transmit on internet to execute on java compatible browsers. Java Servlet is a server side program used to provide services to clients.
An applet is a Java application, this saves files in a .class extension
Applet
One can run and compile a Java applet program by agreeing to the terms and downloading it. It is possible to get a compiler online that will compile and run Java programs.
One defense against a hostile java applet is to disable applet functionality on the computer. This would prevent all applets - hostile, benign, and beneficial from executing.
applets are small programs that can be run on a browser's window or an applet viewer.