JAVA PLUG-IN
Java began its industry career as an embedded programming language
inside Web browsers. Java applets were initially very popular, but over time,
they stagnated due to the early weaknesses of Java and lack of browser
support.
Applets were simple pieces of Java GUI code that hooked into the Web
page with basic HTML code. The code could be hooked in as a jar archive or a
class. For example:
The applet tag lets the browser know it has to talk to an internal Java
Virtual Machine (JVM). If need be, the JVM is started and the applet is
run.
With Java stagnating in the browser, room was left for other
technologies to move in. The most successful of these is Shockwave/Flash. Flash is
installed as a standard plug-in, fitting into a standard browser plug-in
system without requiring a special JVM. The plug-in system ensures that
the correct version of Flash is available and that everything runs
smoothly.
Sun created the Java Plug-in to fit the JVM into the plug-in system. A
browser no longer needs an embedded JVM when it's installed. Instead,
users can go to a Web site that requires Java and install the plug-in when
prompted.
To do this, a complicated
However, there's an easier way to accomplish this. Sun's HTML Converter
changes the old applet tag into the example above. It is easy to use and
has a template structure that permits different HTML if need be. This
allows developers to use the old applet tag and then automatically update
the code to the new Java Plug-in.
Read about the Java Plug-in here. The HTML Converter is automatically
included in Java J2SE 1.3.1 and up; plus, it's available at the Java Web
site.
http://java.sun.com/products/plugin/?frontpage-javaplatform
http://java.sun.com/products/plugin/1.3/docs/html_converter.html
----------------------------------------