Jump to content

Java applet: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Blanked the page
Tag: blanking
m Reverting possible vandalism by 122.3.155.212 to version by Nurg. Report False Positive? Thanks, ClueBot NG. (3169298) (Bot)
Line 1: Line 1:
{{Use dmy dates|date=July 2013}}
[[File:Java applet.png|thumb|A Java applet that was created as supplementary demonstration material for a scientific publication]]
[[File:OpenAstexViewer.jpg|thumb|A Java applet that uses 3D [[hardware acceleration]] to visualize 3D files in [[Protein Data Bank (file format)|.pdb format]] downloaded from a server<ref>{{cite web|url=http://openastexviewer.net/web/|title=The home site of the 3D protein viewer (Openastexviewer) under LGPL|publisher=}}</ref>]]
[[File:Cardiac cells applet.png|thumb|120px|Using applet for nontrivial animation illustrating biophysical topic (randomly moving ions pass through voltage gates)<ref name='heart'>{{cite web|url=http://thevirtualheart.org/CAPindex.html|title=The virtual hearth|publisher=}}</ref>]]
[[File:Mandelbrot java applet.png|thumb|Using a Java applet for computation{{snd}} intensive visualization of the [[Mandelbrot set]]<ref>{{cite web|url=http://math.uchicago.edu/~dannyc/fractals/simple.html|title=The home site of the Mandelbrot set applet under GPL|publisher=}}</ref>]]
[[File:ChessApplet.png|thumb|Applets' running speed is sufficient for making e.g. nontrivial computer games that play [[chess]].<ref>{{cite web|url=http://english.op.org/~peter/ChessApp/ |title=The home site of the chess applet under BSD |deadurl=yes |archiveurl=https://web.archive.org/web/20090907072956/http://english.op.org/~peter/ChessApp/ |archivedate= 7 September 2009 |df= }}</ref>]]
[[File:NASA World Wind.jpg|thumb|NASA [[World Wind]] (open source) is a second generation applet<ref>{{cite web|url=http://java.sun.com/developer/technicalArticles/javase/newapplets/|title=Java.Sun.com|publisher=}}</ref> that makes heavy use of [[OpenGL]] and on-demand data downloading to provide a detailed 3D map of the world.]]
[[File:Remoteconsoleapplet.png|thumb|Web [[out-of-band management|access]] to the server console at the hardware level with the help of a Java applet]]
[[File:FFT2DApplet.png|thumb|Demonstration of image processing using two dimensional [[Fourier transform]]<ref>{{cite web|url=http://www.brainflux.org/java/classes/FFT2DApplet.html|title=2D FFT Java applet|publisher=}}</ref>]]
A '''Java applet''' is a [[applet|small application]] that is written in the [[Java (programming language)|Java]] programming language, or another [[programming language]] that compiles to [[Java bytecode]], and delivered to users in the form of Java [[bytecode]]. The user launches the Java applet from a [[web page]], and the applet is then executed within a [[Java virtual machine]] (JVM) in a [[Process (computing)|process]] separate from the [[web browser]] itself. A Java applet can appear in a frame of the web page, a new application window, [[Sun Microsystems|Sun]]'s [[AppletViewer]], or a stand-alone tool for testing applets. Java applets were introduced in the first version of the Java language, which was released in 1995.

Java applets are usually written in Java, but other languages such as [[Jython]],<ref>{{cite web|url=http://www.jython.org/archive/21/applets/index.html|title=Jython applet page|publisher=}}</ref> [[JRuby]],<ref>[http://michal.hantl.cz/ruby-in-browser-jruby-inside-an-applet/ About Java applets in Ruby]</ref> [[Pascal (programming language)|Pascal]],<ref>{{cite web|url=http://wiki.freepascal.org/FPC_JVM|title=Free Pascal Compiler for JVM|publisher=}}</ref> [[Scala (programming language)|Scala]], or [[Eiffel (programming language)|Eiffel]] (via [[SmartEiffel]])<ref>[http://eiffelzone.com/esd/wrapj/ A tool to produce Java applets with SmartEiffel]</ref> may be used as well.

Java applets run at very fast speeds and, until 2011, they were many times faster than [[JavaScript]].<ref>{{cite web|url=http://www.timestretch.com/FractalBenchmark.html|title=An example of the 2005 year performance benchmarking|date=8 June 2007|publisher=}}</ref> Unlike JavaScript, Java applets had access to 3D [[hardware acceleration]], making them well-suited for non-trivial, computation-intensive visualizations. As browsers have gained support for hardware-accelerated graphics thanks to the [[canvas element|canvas]] technology (or specifically [[WebGL]] in the case of 3D graphics),<ref>{{cite web |url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas#Browser_compatibility|title=canvas - HTML|publisher=Mozilla Developer Network|accessdate=15 August 2015}}</ref><ref>{{cite web |url= https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API#Browser_compatibility|title=WebGL - Web API Interfaces|publisher=Mozilla Developer Network|accessdate=15 August 2015}}</ref> as well as [[just-in-time compilation|just-in-time compiled]] JavaScript,<ref>{{cite web|url=https://developers.google.com/v8/design?hl=en|title=Design Elements - Chrome V8|accessdate=15 August 2015}}</ref><ref>{{cite web |url=http://trac.webkit.org/wiki/JavaScriptCore|title=JavaScriptCore|accessdate=15 August 2015}}</ref> the speed difference has become less noticeable.{{citation needed|reason=there is no evidence of the less noticeable speed difference in the previous citations especially with WebGL whereas some unverifiable sources seem to show that it's a lot slower than JOGL: http://stackoverflow.com/questions/11087520/jogl-applets-versus-webgl|date=February 2016}}

Since Java bytecode is [[cross-platform]] (or platform independent), Java applets can be executed by browsers (or other [[client (computing)|client]]s) for many platforms, including [[Microsoft Windows]], [[FreeBSD]], [[Unix]], [[macOS]] and [[Linux]].

Java applet technology has been marked for [[deprecation]].<ref>{{cite web|url=http://openjdk.java.net/jeps/289|title=JEP 289: Deprecate the Applet API}}</ref><ref>{{cite web|url=https://blogs.oracle.com/java-platform-group/entry/moving_to_a_plugin_free|title=JPG blog: Moving to a Plugin-Free Web}}</ref><ref>{{cite web|url=https://blogs.oracle.com/java-platform-group/entry/further_updates_to_moving_to|title=JPG blog: Further Updates to 'Moving to a Plugin-Free Web'}}</ref>

== Overview ==
The Applets are used to provide interactive features to web applications that cannot be provided by [[HTML]] alone.They can capture [[Mouse (computing)|mouse input]] and also have controls like [[Button (computing)|buttons]] or [[check box]]es. In response to user actions, an applet can change the provided graphic content. This makes applets well-suited for demonstration, visualization, and teaching. There are online applet collections for studying various subjects, from physics<ref>{{cite web|url=http://www.falstad.com/mathphysics.html|title=Paul Falstad online applet portal|publisher=}}</ref> to heart physiology.<ref name='heart'/>

An applet can also be a text area only; providing, for instance, a cross-platform [[command-line interface]] to some remote system.<ref>{{cite web|url=http://www.jcraft.com/jcterm/|title=Jraft.com|publisher=}}</ref> If needed, an applet can leave the dedicated area and run as a separate window. However, applets have very little control over web page content outside the applet's dedicated area, so they are less useful for improving the site appearance in general, unlike other types of [[browser extension]]s (while applets like [[news ticker]]s<ref>[http://www.objectplanet.com/newsticker/ ObjectPlanet.com], an applet that works as news ticker</ref> or [[WYSIWYG]] editors<ref>[http://www.sferyx.com/ Sferyx.com], a company that produces applets acting as [[WYSWYG]] editor.</ref> are also known). Applets can also play media in formats that are not natively supported by the browser.<ref>[[Cortado (software)|Cortado applet to play ogg format]]</ref>

Pages coded in HTML may embed parameters within them that are passed to the applet. Because of this, the same applet may have a different appearance depending on the parameters that were passed.

As applets were available before [[Cascading Style Sheets|CSS]] and [[DHTML]] were standard, they were also widely used for trivial effects such as [[rollover (web design)|rollover]] navigation buttons. Heavily criticized, this usage is now declining.<ref>[http://www.dr-lex.be/info-stuff/top13not2do.html#javanav Top 13] Things Not to Do When Designing a Website</ref>

== Technical information ==
Java applets are executed in a ''[[sandbox (security)|sandbox]]'' by most web browsers, preventing them from accessing local data like the [[clipboard (software)|clipboard]] or [[file system]]. The code of the applet is downloaded from a [[web server]], after which the browser either [[compound document|embeds]] the applet into a web page or opens a new window showing the applet's [[user interface]].

A Java applet extends the class {{Javadoc:SE|package=java.applet|java/applet|Applet}}, or in the case of a [[Swing (Java)|Swing]] applet, {{Javadoc:SE|package=javax.swing|javax/swing|JApplet}}. The class which must override methods from the applet class to set up a user interface inside itself (<code>Applet</code>) is a descendant of {{Javadoc:SE|java/awt|Panel}} which is a descendant of {{Javadoc:SE|java/awt|Container}}. As applet inherits from container, it has largely the same user interface possibilities as an ordinary Java application, including regions with user specific visualization. <!-- I feel like there is something wrong here, as I'm not sure what it's trying to say. Maybe someone with more programming knowledge than myself can clarify here. -->

The first implementations involved downloading an applet class by class. While classes are small files, there are often many of them, so applets got a reputation as slow-loading components. However, since [[JAR (file format)|.jar]]s were introduced, an applet is usually delivered as a single file that has a size similar to an image file (hundreds of kilobytes to several megabytes).

The [[Domain Name System|domain]] from where the applet executable has been downloaded is the only domain to which the usual (unsigned) applet is allowed to communicate. This domain can be different from the domain where the surrounding HTML document is hosted.

Java [[Static library|system libraries]] and [[Runtime library|runtimes]] are backwards-compatible, allowing one to write code that runs both on current and on future versions of the Java virtual machine.

=== Similar technologies ===
Many Java developers, blogs and magazines are recommending that the [[Java Web Start]] technology be used in place of applets.<ref>{{cite web|url=http://www.javaworld.com/javaworld/jw-07-2001/jw-0706-webstart.html|title=JavaWorld.com|date=6 July 2001|work=JavaWorld}}</ref><ref>{{cite web|url=http://javachannel.net/wiki/pmwiki.php/FAQ/Applets|title=JavaChannel.net|publisher=}}</ref> Java Web Start allows the launching of unmodified applet code, which then runs in a separate window (not inside the invoking browser).

A [[Java Servlet]] is sometimes informally compared to be "like" a server-side applet, but it is different in its language, functions, and in each of the characteristics described here about applets.

== Embedding into a web page ==
The applet can be displayed on the web page by making use of the deprecated <code>[[Img (HTML element)|applet]]</code> HTML element,<ref>{{cite web|url=http://www.w3.org/TR/html401/struct/objects.html#edef-APPLET|title=W3.org|publisher=}}</ref> or the recommended <code>object</code> element.<ref>{{cite web|url=http://www.w3.org/TR/html401/struct/objects.html#edef-OBJECT|title=W3.org|publisher=}}</ref> The <code>embed</code> element can be used<ref name="java">{{cite web|url=http://www.java.com/en/download/manual.jsp |title=Java Downloads for All Operating Systems |publisher=Java.com |date=14 August 2012 |accessdate=2013-06-14}}</ref> with Mozilla family browsers (<code>embed</code> was deprecated in HTML 4 but is included in HTML 5). This specifies the applet's source and location. Both <code>object</code> and <code>embed</code> tags can also download and install Java virtual machine (if required) or at least lead to the plugin page. <code>applet</code> and <code>object</code> tags also support loading of the serialized applets that start in some particular (rather than initial) state. Tags also specify the message that shows up in place of the applet if the browser cannot run it due to any reason.

However, despite <code>object</code> being officially a recommended tag, as of 2010, the support of the <code>object</code> tag was not yet consistent among browsers and Sun kept recommending the older <code>applet</code> tag for deploying in multibrowser environments,<ref name="ja">[http://download.java.net/jdk7/docs/technotes/guides/plugin/developer_guide/using_tags.html#object Sun's position on applet and object tags]</ref> as it remained the only tag consistently supported by the most popular browsers. To support multiple browsers, the <code>object</code> tag currently requires JavaScript (that recognizes the browser and adjusts the tag), usage of additional browser-specific tags or delivering adapted output from the server side. Deprecating <code>applet</code> tag has been criticized.<ref>[http://mindprod.com/jgloss/applet.html#OBJECT Criticism] of APPLET tag deprecation</ref> Oracle now provides a maintained JavaScript code<ref>[http://www.java.com/java/deployJava.txt Java applet launcher from Oracle - Link Broken!]</ref> to launch applets with cross platform workarounds.

The Java browser plug-in relies on [[NPAPI]], which many web browser vendors are deprecating due to its age and security issues. In January 2016, Oracle announced that Java runtime environments based on JDK 9 will discontinue the browser plug-in.<ref name="ars-nopluginjdk9">{{cite web|title=Oracle deprecates the Java browser plugin, prepares for its demise|url=https://arstechnica.com/information-technology/2016/01/oracle-deprecates-the-java-browser-plugin-prepares-for-its-demise/|website=Ars Technica|accessdate=15 April 2016}}</ref>

== Example ==
The following example illustrates the use of Java applets through the java.applet package. The example also uses classes from the Java [[Abstract Window Toolkit]] (AWT) to produce the message "[[Hello world program|Hello, world!]]" as output.

<source lang="java">
import java.applet.*;
import java.awt.*;

// Applet code for the "Hello, world!" example.
// This should be saved in a file named as "HelloWorld.java".
public class HelloWorld extends Applet {
// Print a message on the screen (x = 20, y = 10).
public void paint(Graphics g) {
g.drawString("Hello, world!", 20, 10);

// Draws a circle on the screen (x = 40, y = 30).
g.drawArc(40, 30, 20, 20, 0, 360);

// Draws a rectangle on the screen (x1 = 100, y1 = 100, x2 = 300, y2 = 300).
g.drawRect(100, 100, 300, 300);

// Draws a square on the screen (x1 = 100, y1 = 100, x2 = 200, y2 = 200).
g.drawRect(100, 100, 200, 200);
}
}
</source>

Simple applets are shared freely on the Internet for customizing applications that support [[plugin (computing)|plugin]]s.<ref>For example, see [[Wikiversity:Java applets|Java applet section in Wikiversity]]</ref>

After [[compiler|compilation]], the resulting <tt>.class</tt> file can be placed on a web server and invoked within an [[HTML]] page by using an <tt>&lt;applet&gt;</tt> or an <tt>&lt;object&gt;</tt> tag. For example:

<source lang="html5">
<!DOCTYPE html>
<html>
<head>
<title>HelloWorld_example.html</title>
</head>
<body>
<h1>A Java applet example</h1>
<p>
Here it is:
<applet code="HelloWorld.class" height="40" width="200">
This is where HelloWorld.class runs.
</applet>
</p>
</body>
</html>
</source>

When the page is accessed it will read as follows:

::<span style="font-size:1.9em;">'''A Java applet example'''</span>
::Here it is: Hello, world!

To minimize download time, applets can be delivered in the form of a [[JAR (file format)|jar]] file. In the case of this example, if all necessary classes are placed in the compressed archive ''example.jar'', the following embedding code could be used instead:

<source lang="html5">
<p>
Here it is:
<applet archive="example.jar" code="HelloWorld" height="40" width="200">
This is where HelloWorld.class runs.
</applet>
</p>
</source>

Applet inclusion is described in detail in Sun's official page about the APPLET tag.<ref name="appletinclusion">[http://java.sun.com/j2se/1.4.2/docs/guide/misc/applet.html Java.Sun.com] Sun's APPLET tag page {{webarchive |url=https://web.archive.org/web/20100105041516/http://java.sun.com/j2se/1.4.2/docs/guide/misc/applet.html |date=5 January 2010 }}</ref>

== Advantages ==
A Java applet can have any or all of the following advantages:<ref>[http://download.oracle.com/javase/tutorial/deployment/applet/index.html Oracle official] overview on Java applet technology</ref>

* It is simple to make it work on FreeBSD, Linux, Microsoft Windows and macOS{{snd}} that is, to make it cross platform. Applets are supported by most [[web browser]]s.{{Dubious|date=September 2017}}
* The same applet can work on "all" installed versions of Java at the same time, rather than just the latest [[plug-in (computing)|plug-in]] version only. However, if an applet requires a later version of the [[Java Virtual Machine|Java Runtime Environment]] (JRE) the client will be forced to wait during the large download.
* Most web browsers [[web cache|cache]] applets so they will be quick to load when returning to a web page. Applets also improve with use: after a first applet is run, the JVM is already running and starts quickly (the JVM will need to restart each time the browser starts afresh). It should be noted that JRE versions 1.5 and greater stop the JVM and restart it when the browser navigates from one HTML page containing an applet to another containing an applet.
* It can move the work from the [[server (computing)|server]] to the [[client (computing)|client]], making a web solution more scalable with the number of users/clients.
* If a standalone program (like [[Google Earth]]) talks to a web server, that server normally needs to support all prior versions for users which have not kept their client software updated. In contrast, a properly configured browser loads (and caches) the latest applet version, so there is no need to support legacy versions.
* The applet naturally supports the changing user state, such as figure positions on the chessboard.
* Developers can develop and debug an applet directly simply by creating a main routine (either in the applet's class or in a separate class) and calling init() and start() on the applet, thus allowing for development in their favorite [[Java Platform, Standard Edition|Java SE]] development environment. All one has to do after that is re-test the applet in the AppletViewer program or a web browser to ensure it conforms to security restrictions.
* An [[Browser security|untrusted]] applet has no access to the local machine and can only access the server it came from. This makes such an applet much safer to run than a standalone executable that it could replace. However, a signed applet can have full access to the machine it is running on if the user agrees.
* Java applets are fast—and can even have [[Java performance|similar performance]] to native installed software.

== Disadvantages ==
{{refimprove section|date=August 2015}}
A Java applet may have any of the following disadvantages compared to other client-side web technologies:

* Java applets depend on a Java Runtime Environment (JRE), which is a reasonably complex and heavy-weight software package. It also normally requires a [[plug-in (computing)|plug-in]] for the web browser. Some organizations only allow software installed by an administrator. As a result, some users can only view applets that are important enough to justify contacting the administrator to request installation of the JRE and plug-in.
* If an applet requires a newer JRE than available on the system, or a specific JRE, the user running it the first time will need to wait for the large JRE download to complete.
* Most browsers, notably mobile browsers on [[iOS]] or [[Android (operating system)|Android]], do not run Java applets at all.<ref>{{cite web|url=http://www.java.com/en/download/faq/java_mobile.xml|title=How do I get Java for Mobile device?|date=30 July 2014|publisher=}}</ref>
* Unlike the older <code>applet</code> tag, the <code>object</code> tag needs workarounds to write a cross-browser HTML document.
* There is no standard to make the content of applets available to screen readers. Therefore, applets can harm the accessibility of a web site to users with special needs.
* As with any client-side scripting, security restrictions may make it difficult or even impossible for an untrusted applet to achieve the desired goals. However, simply editing the java.policy file in the JAVA JRE installation, one can grant access to the local filesystem or system clipboard for example, or to other network sources other than the network source that served the applet to the browser.

== Compatibility-related lawsuits ==
[[Sun Microsystems|Sun]] has made considerable efforts to ensure compatibility is maintained between Java versions as they evolve, enforcing Java portability by law if required. Oracle seems to be continuing the same strategy.

=== 1997: Sun vs Microsoft ===
The 1997 lawsuit,<ref name="s1997">{{cite web|url=http://www.javaworld.com/jw-10-1997/jw-10-lawsuit.html|title=What does Sun's lawsuit against Microsoft mean for Java developers? |first=John |last=Zukowski |date=1 October 1997|work=JavaWorld}}</ref> was filed after Microsoft created a modified [[Microsoft Java Virtual Machine|Java Virtual Machine of their own]], which shipped with Internet Explorer. Microsoft added about 50 methods and 50 fields<ref name="s1997"/> into the classes within the ''java.awt, java.lang'', and ''java.io'' packages. Other modifications included removal of [[Java remote method invocation|RMI]] capability and replacement of [[Java native interface]] from JNI to [[Java Native Interface#Microsoft's RNI|RNI]], a different standard. RMI was removed because it only easily supports Java to Java communications and competes with Microsoft [[Distributed Component Object Model|DCOM]] technology. Applets that relied on these changes or just inadvertently used them worked only within Microsoft's Java system. Sun sued for breach of [[trademark]], as the point of Java was that there should be no proprietary extensions and that code should work everywhere. Microsoft agreed to pay Sun $20 million, and Sun agreed to grant Microsoft limited license to use Java without modifications only and for a limited time.<ref name="sun_suits">{{cite web|url=http://www.sun.com/lawsuit/summary.html|title=Sun's page, devoted for the lawsuits against Microsoft|publisher=}}</ref>

=== 2002: Sun vs Microsoft ===
Microsoft continued to ship its own unmodified Java virtual machine. Over the years it became extremely outdated yet still default for Internet Explorer. A later study revealed that applets of this time often contain their own classes that mirror [[Swing (Java)|Swing]] and other newer features in a limited way.<ref>[http://kenai.com/projects/ultrastudio-org/forums/message-forum/topics/7034-Most-common-problems-found-in-the-code-of-the-reviewed-applets Kenai.com (2011)] Most common problems, found in the code of the reviewed applets.</ref> In 2002, Sun filed an [[antitrust]] lawsuit, claiming that Microsoft's attempts at illegal monopolization had harmed the Java platform. Sun demanded Microsoft distribute Sun's current, binary implementation of Java technology as part of Windows, distribute it as a recommended update for older Microsoft desktop operating systems and stop the distribution of Microsoft's Virtual Machine (as its licensing time, agreed in the prior lawsuit, had expired).<ref name="sun_suits"/> Microsoft paid $700 million for pending antitrust issues, another $900 million for patent issues and a $350 million royalty fee to use Sun's software in the future.<ref>{{cite web|url=http://my.advisor.com/doc/13947 |title=Sun - Microsoft 2002 lawsuit |publisher= |deadurl=yes |archiveurl=https://web.archive.org/web/20121221054824/http://my.advisor.com/doc/13947 |archivedate=21 December 2012 }}</ref><ref>[http://www.microsoft.com/presspass/press/2004/apr04/04-02SunAgreementPR.mspx Microsoft page devoted to the Sun - Microsoft 2002 lawsuit] {{webarchive |url=https://web.archive.org/web/20100225015449/http://www.microsoft.com/presspass/press/2004/apr04/04-02SunAgreementPR.mspx |date=25 February 2010 }}</ref>

=== 2010: Oracle vs Google ===
{{See also|Oracle v. Google}}
Google has developed its own [[Android (operating system)|Android]] platform that uses Java features and concepts, yet is incompatible with standard libraries. This may be a violation of conditions under which Sun granted [[OpenJDK]] patents to use open source Java for all.<ref>{{cite web|url=https://www.scribd.com/doc/35811761/Oracle-s-complaint-against-Google-for-Java-patent-infringement |title=Oracle's complaint against Google for Java patent infringement |publisher=Scribd.com |date= |accessdate=2013-06-14}}</ref> In 2010, Oracle sued Google<ref>{{cite web|url=https://venturebeat.com/2010/08/12/oracle-sues-google-over-android/|title=Oracle sues Google over Android|work=VentureBeat}}</ref> for using Java "in a wrong way", claiming that "Google's Android competes with Oracle America's Java" and that "Google has been aware of Sun’s patent portfolio ... since Google hired certain former Sun Java engineers". In May 2012, the jury in this case found that Google did not infringe on Oracle's patents, and the trial judge ruled that the structure of the Java APIs used by Google was not copyrightable.<ref>{{cite web | url=http://www.zdnet.com/blog/btl/jury-clears-google-of-infringing-on-oracle-patents/77897 | title=Jury clears Google of infringing on Oracle's patents | author = Josh Lowensohn | work=ZDNet | date = 23 May 2012 | accessdate=2012-05-25}}</ref><ref>
{{cite web
| title = Google wins crucial API ruling, Oracle’s case decimated
| url = https://arstechnica.com/tech-policy/2012/05/google-wins-crucial-api-ruling-oracles-case-decimated/
| author = Joe Mullin
| work = Ars Technica
| date = 31 May 2012
| accessdate = 2012-06-01
}}</ref>

== Security ==
There are two applet types with very different security models: signed applets and unsigned applets.<ref>{{cite web|url=http://java.sun.com/docs/books/tutorial/deployment/applet/security.html|title=Sun's explanation about applet security|publisher=}}</ref> As of Java SE 7 Update 21 (April 2013) applets and Web-Start Apps are encouraged to be signed with a trusted certificate, and warning messages appear when running unsigned applets.<ref>{{Cite web|url = http://www.oracle.com/technetwork/java/javase/tech/java-code-signing-1915323.html#60|title = Java Applet & Web Start - Code Signing|accessdate = 28 February 2014|publisher = Oracle}}</ref> Further starting with Java 7 Update 51 unsigned applets are blocked by default; they can be run by creating an exception in the Java Control Panel.<ref>{{Cite web|url = http://java.com/en/download/help/appsecuritydialogs.xml|title = What should I do when I see a security prompt from Java?|accessdate = 28 February 2014|date = |publisher = Oracle}}</ref>

=== Unsigned ===
Limits on unsigned applets are understood as "draconian":<ref>[http://www.wutka.com/hackingjava/ch3.htm Java Security FAQ Applet Security Restrictions] by Mark Wutka</ref> they have no access to the local filesystem and web access limited to the applet download site; there are also many other important restrictions. For instance, they cannot access all system properties, use their own [[class loader]], call [[native code]], execute external commands on a local system or redefine classes belonging to core packages included as part of a Java release. While they can run in a standalone frame, such frame contains a header, indicating that this is an untrusted applet. Successful initial call of the forbidden method does not automatically create a security hole as an access controller checks the entire [[Call stack|stack]] of the calling code to be sure the call is not coming from an improper location.

As with any complex system, many security problems have been discovered and fixed since Java was first released. Some of these (like the Calendar serialization security bug)<ref>{{cite web|url=http://slightlyrandombrokenthoughts.blogspot.com/2008/12/calendar-bug.html|title=Description of Calendar serialization security bug|author=Sami Koivu|publisher=}}</ref> persisted for many years with nobody being aware. Others have been discovered in use by malware in the wild.{{citation needed|date=September 2013}}

Some studies mention applets crashing the browser or overusing [[central processing unit|CPU]] resources but these are classified as nuisances<ref name="SIP">[http://www.cs.princeton.edu/sip/faq/java-faq.php3 Java Security FAQ]</ref> and not as true security flaws. However, unsigned applets may be involved in combined attacks that exploit a combination of multiple severe configuration errors in other parts of the system.<ref>[http://avirubin.com/block.java.pdf Avirubin.com]</ref> An unsigned applet can also be more dangerous to run directly on the server where it is hosted because while code base allows it to talk with the server, running inside it can bypass the firewall. An applet may also try [[Denial-of-service attack|DoS attacks]] on the server where it is hosted, but usually people who manage the web site also manage the applet, making this unreasonable. Communities may solve this problem via [[Code review|source code review]] or running applets on a dedicated domain.<ref>[http://strategy.wikimedia.org/wiki/Proposal:Java_applet_support Strategy.Wikimedia.org], proposal with discussion about Java applets in community sites</ref><ref>[http://Ultrastudio.org Ultrastudio.org], user editable educational site with full applet support</ref>

The unsigned applet can also try to download malware hosted on originating server. However it could only store such file into a temporary folder (as it is transient data) and has no means to complete the attack by executing it. There were attempts to use applets for spreading Phoenix and Siberia exploits this way,{{citation needed|date=October 2010}} but these exploits do not use Java internally and were also distributed in several other ways.

=== Signed ===
A signed applet<ref>{{cite web|url=http://www.informit.com/articles/article.aspx?p=433382&seqNum=2|title=Informit.com|publisher=}}</ref> contains a signature that the browser should verify through a remotely running, independent [[Certificate server|certificate authority server]]. Producing this signature involves specialized tools and interaction with the authority server maintainers. Once the signature is verified, and the user of the current machine also approves, a signed applet can get more rights, becoming equivalent to an ordinary standalone program. The rationale is that the author of the applet is now known and will be responsible for any deliberate damage.{{vague|date=October 2010}} This approach allows applets to be used for many tasks that are otherwise not possible by client-side scripting. However, this approach requires more responsibility from the user, deciding whom he or she trusts. The related concerns include a non-responsive authority server, wrong evaluation of the signer identity when issuing certificates, and known applet publishers still doing something that the user would not approve of. Hence signed applets that appeared from Java 1.1 may actually have more security concerns.<ref>{{cite web|url=http://www.indiana.edu/~phishing/verybigad/|title=Sid Stamm, Markus Jakobsson, Mona Gandhi (2006). A study in socially transmitted malware|publisher=}}</ref>

=== Self-signed ===
Self-signed applets, which are applets signed by the developer themselves, may potentially pose a security risk; java plugins provide a warning when requesting authorization for a self-signed applet, as the function and safety of the applet is guaranteed only by the developer itself, and has not been independently confirmed. Such self-signed certificates are usually only used during development prior to release where third-party confirmation of security is unimportant, but most applet developers will seek third-party signing to ensure that users trust the applet's safety.

Java security problems are not fundamentally different from similar problems of any client-side scripting platform<ref>{{Cite web|url=http://www.wiley.com/legacy/compbooks/press/mcgch1.html|title=* To be fair, significantly more World Wide Web users use the Netscape product than use the Microsoft product today, though the gap appears to be closing|website=www.wiley.com|access-date=2017-03-17}}</ref>{{citation needed|date=December 2015}}. In particular, all issues related to signed applets also apply to Microsoft [[ActiveX]] components.

As of 2014, self-signed and unsigned applets are no longer accepted by the commonly available Java plugins or Java Web Start. Consequently, developers who wish to deploy Java applets have no alternative but to acquire trusted certificates from commercial sources.

== Alternatives ==
Alternative technologies exist (for example, [[JavaScript]]) that satisfy all or more of the scope of what is possible with an applet. Of these, JavaScript is not always viewed as a competing replacement{{By whom|date=September 2017}}; JavaScript can coexist with applets in the same page, assist in launching applets (for instance, in a separate frame or providing platform workarounds) and later be called from the applet code.<ref>[http://www.rgagnon.com/javadetails/java-0170.html Rgagnon.com], calling a Java applet from JavaScript</ref> [[JavaFX]] is an extension of the Java platform and may also be viewed as an alternative.

== See also ==<!-- PLEASE RESPECCT ALPHABETICAL ORDER -->
{{Portal|Java}}
* [[ActiveX]]
* [[Curl (programming language)|Curl]]
* [[Java (programming language)]]
* [[Java Servlet]]
* [[Java Web Start]]
* [[JavaFX]]
* [[Rich Internet application]]{{snd}} several platforms for creating interactive and/or multimedia web sites
* [[WebGL]]

==References==
{{Reflist|30em}}

==External links==
{{commons category|Java applets}}
<!-- Please add no links to individual, especially commercial applets here. Too many. -->
* [http://www.java.com/download/ Latest version of Sun Microsystems' Java Virtual Machine] (includes browser plug-ins for running Java applets in most web browsers).
* [http://docs.oracle.com/javase/tutorial/deployment/applet/index.html Information about writing applets from Oracle]
* [http://java.sun.com/applets/jdk/1.4/index.html Demonstration applets from Sun Microsystems] ([[JDK]] 1.4{{snd}} include source code)
{{Java (Sun)}}

{{Rich Internet applications}}

{{DEFAULTSORT:Applet}}
[[Category:Java (programming language)]]
[[Category:Java platform]]
[[Category:Web 1.0]]

Revision as of 08:43, 26 October 2017

A Java applet that was created as supplementary demonstration material for a scientific publication
A Java applet that uses 3D hardware acceleration to visualize 3D files in .pdb format downloaded from a server[1]
Using applet for nontrivial animation illustrating biophysical topic (randomly moving ions pass through voltage gates)[2]
Using a Java applet for computation – intensive visualization of the Mandelbrot set[3]
Applets' running speed is sufficient for making e.g. nontrivial computer games that play chess.[4]
NASA World Wind (open source) is a second generation applet[5] that makes heavy use of OpenGL and on-demand data downloading to provide a detailed 3D map of the world.
Web access to the server console at the hardware level with the help of a Java applet
Demonstration of image processing using two dimensional Fourier transform[6]

A Java applet is a small application that is written in the Java programming language, or another programming language that compiles to Java bytecode, and delivered to users in the form of Java bytecode. The user launches the Java applet from a web page, and the applet is then executed within a Java virtual machine (JVM) in a process separate from the web browser itself. A Java applet can appear in a frame of the web page, a new application window, Sun's AppletViewer, or a stand-alone tool for testing applets. Java applets were introduced in the first version of the Java language, which was released in 1995.

Java applets are usually written in Java, but other languages such as Jython,[7] JRuby,[8] Pascal,[9] Scala, or Eiffel (via SmartEiffel)[10] may be used as well.

Java applets run at very fast speeds and, until 2011, they were many times faster than JavaScript.[11] Unlike JavaScript, Java applets had access to 3D hardware acceleration, making them well-suited for non-trivial, computation-intensive visualizations. As browsers have gained support for hardware-accelerated graphics thanks to the canvas technology (or specifically WebGL in the case of 3D graphics),[12][13] as well as just-in-time compiled JavaScript,[14][15] the speed difference has become less noticeable.[citation needed]

Since Java bytecode is cross-platform (or platform independent), Java applets can be executed by browsers (or other clients) for many platforms, including Microsoft Windows, FreeBSD, Unix, macOS and Linux.

Java applet technology has been marked for deprecation.[16][17][18]

Overview

The Applets are used to provide interactive features to web applications that cannot be provided by HTML alone.They can capture mouse input and also have controls like buttons or check boxes. In response to user actions, an applet can change the provided graphic content. This makes applets well-suited for demonstration, visualization, and teaching. There are online applet collections for studying various subjects, from physics[19] to heart physiology.[2]

An applet can also be a text area only; providing, for instance, a cross-platform command-line interface to some remote system.[20] If needed, an applet can leave the dedicated area and run as a separate window. However, applets have very little control over web page content outside the applet's dedicated area, so they are less useful for improving the site appearance in general, unlike other types of browser extensions (while applets like news tickers[21] or WYSIWYG editors[22] are also known). Applets can also play media in formats that are not natively supported by the browser.[23]

Pages coded in HTML may embed parameters within them that are passed to the applet. Because of this, the same applet may have a different appearance depending on the parameters that were passed.

As applets were available before CSS and DHTML were standard, they were also widely used for trivial effects such as rollover navigation buttons. Heavily criticized, this usage is now declining.[24]

Technical information

Java applets are executed in a sandbox by most web browsers, preventing them from accessing local data like the clipboard or file system. The code of the applet is downloaded from a web server, after which the browser either embeds the applet into a web page or opens a new window showing the applet's user interface.

A Java applet extends the class java.applet.Applet, or in the case of a Swing applet, javax.swing.JApplet. The class which must override methods from the applet class to set up a user interface inside itself (Applet) is a descendant of Panel which is a descendant of Container. As applet inherits from container, it has largely the same user interface possibilities as an ordinary Java application, including regions with user specific visualization.

The first implementations involved downloading an applet class by class. While classes are small files, there are often many of them, so applets got a reputation as slow-loading components. However, since .jars were introduced, an applet is usually delivered as a single file that has a size similar to an image file (hundreds of kilobytes to several megabytes).

The domain from where the applet executable has been downloaded is the only domain to which the usual (unsigned) applet is allowed to communicate. This domain can be different from the domain where the surrounding HTML document is hosted.

Java system libraries and runtimes are backwards-compatible, allowing one to write code that runs both on current and on future versions of the Java virtual machine.

Similar technologies

Many Java developers, blogs and magazines are recommending that the Java Web Start technology be used in place of applets.[25][26] Java Web Start allows the launching of unmodified applet code, which then runs in a separate window (not inside the invoking browser).

A Java Servlet is sometimes informally compared to be "like" a server-side applet, but it is different in its language, functions, and in each of the characteristics described here about applets.

Embedding into a web page

The applet can be displayed on the web page by making use of the deprecated applet HTML element,[27] or the recommended object element.[28] The embed element can be used[29] with Mozilla family browsers (embed was deprecated in HTML 4 but is included in HTML 5). This specifies the applet's source and location. Both object and embed tags can also download and install Java virtual machine (if required) or at least lead to the plugin page. applet and object tags also support loading of the serialized applets that start in some particular (rather than initial) state. Tags also specify the message that shows up in place of the applet if the browser cannot run it due to any reason.

However, despite object being officially a recommended tag, as of 2010, the support of the object tag was not yet consistent among browsers and Sun kept recommending the older applet tag for deploying in multibrowser environments,[30] as it remained the only tag consistently supported by the most popular browsers. To support multiple browsers, the object tag currently requires JavaScript (that recognizes the browser and adjusts the tag), usage of additional browser-specific tags or delivering adapted output from the server side. Deprecating applet tag has been criticized.[31] Oracle now provides a maintained JavaScript code[32] to launch applets with cross platform workarounds.

The Java browser plug-in relies on NPAPI, which many web browser vendors are deprecating due to its age and security issues. In January 2016, Oracle announced that Java runtime environments based on JDK 9 will discontinue the browser plug-in.[33]

Example

The following example illustrates the use of Java applets through the java.applet package. The example also uses classes from the Java Abstract Window Toolkit (AWT) to produce the message "Hello, world!" as output.

import java.applet.*;
import java.awt.*;

// Applet code for the "Hello, world!" example.
// This should be saved in a file named as "HelloWorld.java".
public class HelloWorld extends Applet {
    // Print a message on the screen (x = 20, y = 10).
    public void paint(Graphics g) {
        g.drawString("Hello, world!", 20, 10);

        // Draws a circle on the screen (x = 40, y = 30).
        g.drawArc(40, 30, 20, 20, 0, 360);

        // Draws a rectangle on the screen (x1 = 100, y1 = 100, x2 = 300, y2 = 300).
        g.drawRect(100, 100, 300, 300);

        // Draws a square on the screen (x1 = 100, y1 = 100, x2 = 200, y2 = 200).
        g.drawRect(100, 100, 200, 200);
    }
}

Simple applets are shared freely on the Internet for customizing applications that support plugins.[34]

After compilation, the resulting .class file can be placed on a web server and invoked within an HTML page by using an <applet> or an <object> tag. For example:

<!DOCTYPE html>
<html>
<head>
  <title>HelloWorld_example.html</title>
</head>
<body>
  <h1>A Java applet example</h1>
  <p>
    Here it is:
    <applet code="HelloWorld.class" height="40" width="200">
      This is where HelloWorld.class runs.
    </applet>
  </p>
</body>
</html>

When the page is accessed it will read as follows:

A Java applet example
Here it is: Hello, world!

To minimize download time, applets can be delivered in the form of a jar file. In the case of this example, if all necessary classes are placed in the compressed archive example.jar, the following embedding code could be used instead:

<p>
  Here it is:
  <applet archive="example.jar" code="HelloWorld" height="40" width="200">
    This is where HelloWorld.class runs.
  </applet>
</p>

Applet inclusion is described in detail in Sun's official page about the APPLET tag.[35]

Advantages

A Java applet can have any or all of the following advantages:[36]

  • It is simple to make it work on FreeBSD, Linux, Microsoft Windows and macOS – that is, to make it cross platform. Applets are supported by most web browsers.[dubiousdiscuss]
  • The same applet can work on "all" installed versions of Java at the same time, rather than just the latest plug-in version only. However, if an applet requires a later version of the Java Runtime Environment (JRE) the client will be forced to wait during the large download.
  • Most web browsers cache applets so they will be quick to load when returning to a web page. Applets also improve with use: after a first applet is run, the JVM is already running and starts quickly (the JVM will need to restart each time the browser starts afresh). It should be noted that JRE versions 1.5 and greater stop the JVM and restart it when the browser navigates from one HTML page containing an applet to another containing an applet.
  • It can move the work from the server to the client, making a web solution more scalable with the number of users/clients.
  • If a standalone program (like Google Earth) talks to a web server, that server normally needs to support all prior versions for users which have not kept their client software updated. In contrast, a properly configured browser loads (and caches) the latest applet version, so there is no need to support legacy versions.
  • The applet naturally supports the changing user state, such as figure positions on the chessboard.
  • Developers can develop and debug an applet directly simply by creating a main routine (either in the applet's class or in a separate class) and calling init() and start() on the applet, thus allowing for development in their favorite Java SE development environment. All one has to do after that is re-test the applet in the AppletViewer program or a web browser to ensure it conforms to security restrictions.
  • An untrusted applet has no access to the local machine and can only access the server it came from. This makes such an applet much safer to run than a standalone executable that it could replace. However, a signed applet can have full access to the machine it is running on if the user agrees.
  • Java applets are fast—and can even have similar performance to native installed software.

Disadvantages

A Java applet may have any of the following disadvantages compared to other client-side web technologies:

  • Java applets depend on a Java Runtime Environment (JRE), which is a reasonably complex and heavy-weight software package. It also normally requires a plug-in for the web browser. Some organizations only allow software installed by an administrator. As a result, some users can only view applets that are important enough to justify contacting the administrator to request installation of the JRE and plug-in.
  • If an applet requires a newer JRE than available on the system, or a specific JRE, the user running it the first time will need to wait for the large JRE download to complete.
  • Most browsers, notably mobile browsers on iOS or Android, do not run Java applets at all.[37]
  • Unlike the older applet tag, the object tag needs workarounds to write a cross-browser HTML document.
  • There is no standard to make the content of applets available to screen readers. Therefore, applets can harm the accessibility of a web site to users with special needs.
  • As with any client-side scripting, security restrictions may make it difficult or even impossible for an untrusted applet to achieve the desired goals. However, simply editing the java.policy file in the JAVA JRE installation, one can grant access to the local filesystem or system clipboard for example, or to other network sources other than the network source that served the applet to the browser.

Sun has made considerable efforts to ensure compatibility is maintained between Java versions as they evolve, enforcing Java portability by law if required. Oracle seems to be continuing the same strategy.

1997: Sun vs Microsoft

The 1997 lawsuit,[38] was filed after Microsoft created a modified Java Virtual Machine of their own, which shipped with Internet Explorer. Microsoft added about 50 methods and 50 fields[38] into the classes within the java.awt, java.lang, and java.io packages. Other modifications included removal of RMI capability and replacement of Java native interface from JNI to RNI, a different standard. RMI was removed because it only easily supports Java to Java communications and competes with Microsoft DCOM technology. Applets that relied on these changes or just inadvertently used them worked only within Microsoft's Java system. Sun sued for breach of trademark, as the point of Java was that there should be no proprietary extensions and that code should work everywhere. Microsoft agreed to pay Sun $20 million, and Sun agreed to grant Microsoft limited license to use Java without modifications only and for a limited time.[39]

2002: Sun vs Microsoft

Microsoft continued to ship its own unmodified Java virtual machine. Over the years it became extremely outdated yet still default for Internet Explorer. A later study revealed that applets of this time often contain their own classes that mirror Swing and other newer features in a limited way.[40] In 2002, Sun filed an antitrust lawsuit, claiming that Microsoft's attempts at illegal monopolization had harmed the Java platform. Sun demanded Microsoft distribute Sun's current, binary implementation of Java technology as part of Windows, distribute it as a recommended update for older Microsoft desktop operating systems and stop the distribution of Microsoft's Virtual Machine (as its licensing time, agreed in the prior lawsuit, had expired).[39] Microsoft paid $700 million for pending antitrust issues, another $900 million for patent issues and a $350 million royalty fee to use Sun's software in the future.[41][42]

2010: Oracle vs Google

Google has developed its own Android platform that uses Java features and concepts, yet is incompatible with standard libraries. This may be a violation of conditions under which Sun granted OpenJDK patents to use open source Java for all.[43] In 2010, Oracle sued Google[44] for using Java "in a wrong way", claiming that "Google's Android competes with Oracle America's Java" and that "Google has been aware of Sun’s patent portfolio ... since Google hired certain former Sun Java engineers". In May 2012, the jury in this case found that Google did not infringe on Oracle's patents, and the trial judge ruled that the structure of the Java APIs used by Google was not copyrightable.[45][46]

Security

There are two applet types with very different security models: signed applets and unsigned applets.[47] As of Java SE 7 Update 21 (April 2013) applets and Web-Start Apps are encouraged to be signed with a trusted certificate, and warning messages appear when running unsigned applets.[48] Further starting with Java 7 Update 51 unsigned applets are blocked by default; they can be run by creating an exception in the Java Control Panel.[49]

Unsigned

Limits on unsigned applets are understood as "draconian":[50] they have no access to the local filesystem and web access limited to the applet download site; there are also many other important restrictions. For instance, they cannot access all system properties, use their own class loader, call native code, execute external commands on a local system or redefine classes belonging to core packages included as part of a Java release. While they can run in a standalone frame, such frame contains a header, indicating that this is an untrusted applet. Successful initial call of the forbidden method does not automatically create a security hole as an access controller checks the entire stack of the calling code to be sure the call is not coming from an improper location.

As with any complex system, many security problems have been discovered and fixed since Java was first released. Some of these (like the Calendar serialization security bug)[51] persisted for many years with nobody being aware. Others have been discovered in use by malware in the wild.[citation needed]

Some studies mention applets crashing the browser or overusing CPU resources but these are classified as nuisances[52] and not as true security flaws. However, unsigned applets may be involved in combined attacks that exploit a combination of multiple severe configuration errors in other parts of the system.[53] An unsigned applet can also be more dangerous to run directly on the server where it is hosted because while code base allows it to talk with the server, running inside it can bypass the firewall. An applet may also try DoS attacks on the server where it is hosted, but usually people who manage the web site also manage the applet, making this unreasonable. Communities may solve this problem via source code review or running applets on a dedicated domain.[54][55]

The unsigned applet can also try to download malware hosted on originating server. However it could only store such file into a temporary folder (as it is transient data) and has no means to complete the attack by executing it. There were attempts to use applets for spreading Phoenix and Siberia exploits this way,[citation needed] but these exploits do not use Java internally and were also distributed in several other ways.

Signed

A signed applet[56] contains a signature that the browser should verify through a remotely running, independent certificate authority server. Producing this signature involves specialized tools and interaction with the authority server maintainers. Once the signature is verified, and the user of the current machine also approves, a signed applet can get more rights, becoming equivalent to an ordinary standalone program. The rationale is that the author of the applet is now known and will be responsible for any deliberate damage.[vague] This approach allows applets to be used for many tasks that are otherwise not possible by client-side scripting. However, this approach requires more responsibility from the user, deciding whom he or she trusts. The related concerns include a non-responsive authority server, wrong evaluation of the signer identity when issuing certificates, and known applet publishers still doing something that the user would not approve of. Hence signed applets that appeared from Java 1.1 may actually have more security concerns.[57]

Self-signed

Self-signed applets, which are applets signed by the developer themselves, may potentially pose a security risk; java plugins provide a warning when requesting authorization for a self-signed applet, as the function and safety of the applet is guaranteed only by the developer itself, and has not been independently confirmed. Such self-signed certificates are usually only used during development prior to release where third-party confirmation of security is unimportant, but most applet developers will seek third-party signing to ensure that users trust the applet's safety.

Java security problems are not fundamentally different from similar problems of any client-side scripting platform[58][citation needed]. In particular, all issues related to signed applets also apply to Microsoft ActiveX components.

As of 2014, self-signed and unsigned applets are no longer accepted by the commonly available Java plugins or Java Web Start. Consequently, developers who wish to deploy Java applets have no alternative but to acquire trusted certificates from commercial sources.

Alternatives

Alternative technologies exist (for example, JavaScript) that satisfy all or more of the scope of what is possible with an applet. Of these, JavaScript is not always viewed as a competing replacement[by whom?]; JavaScript can coexist with applets in the same page, assist in launching applets (for instance, in a separate frame or providing platform workarounds) and later be called from the applet code.[59] JavaFX is an extension of the Java platform and may also be viewed as an alternative.

See also

References

  1. ^ "The home site of the 3D protein viewer (Openastexviewer) under LGPL".
  2. ^ a b "The virtual hearth".
  3. ^ "The home site of the Mandelbrot set applet under GPL".
  4. ^ "The home site of the chess applet under BSD". Archived from the original on 7 September 2009. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  5. ^ "Java.Sun.com".
  6. ^ "2D FFT Java applet".
  7. ^ "Jython applet page".
  8. ^ About Java applets in Ruby
  9. ^ "Free Pascal Compiler for JVM".
  10. ^ A tool to produce Java applets with SmartEiffel
  11. ^ "An example of the 2005 year performance benchmarking". 8 June 2007.
  12. ^ "canvas - HTML". Mozilla Developer Network. Retrieved 15 August 2015.
  13. ^ "WebGL - Web API Interfaces". Mozilla Developer Network. Retrieved 15 August 2015.
  14. ^ "Design Elements - Chrome V8". Retrieved 15 August 2015.
  15. ^ "JavaScriptCore". Retrieved 15 August 2015.
  16. ^ "JEP 289: Deprecate the Applet API".
  17. ^ "JPG blog: Moving to a Plugin-Free Web".
  18. ^ "JPG blog: Further Updates to 'Moving to a Plugin-Free Web'".
  19. ^ "Paul Falstad online applet portal".
  20. ^ "Jraft.com".
  21. ^ ObjectPlanet.com, an applet that works as news ticker
  22. ^ Sferyx.com, a company that produces applets acting as WYSWYG editor.
  23. ^ Cortado applet to play ogg format
  24. ^ Top 13 Things Not to Do When Designing a Website
  25. ^ "JavaWorld.com". JavaWorld. 6 July 2001.
  26. ^ "JavaChannel.net".
  27. ^ "W3.org".
  28. ^ "W3.org".
  29. ^ "Java Downloads for All Operating Systems". Java.com. 14 August 2012. Retrieved 14 June 2013.
  30. ^ Sun's position on applet and object tags
  31. ^ Criticism of APPLET tag deprecation
  32. ^ Java applet launcher from Oracle - Link Broken!
  33. ^ "Oracle deprecates the Java browser plugin, prepares for its demise". Ars Technica. Retrieved 15 April 2016.
  34. ^ For example, see Java applet section in Wikiversity
  35. ^ Java.Sun.com Sun's APPLET tag page Archived 5 January 2010 at the Wayback Machine
  36. ^ Oracle official overview on Java applet technology
  37. ^ "How do I get Java for Mobile device?". 30 July 2014.
  38. ^ a b Zukowski, John (1 October 1997). "What does Sun's lawsuit against Microsoft mean for Java developers?". JavaWorld.
  39. ^ a b "Sun's page, devoted for the lawsuits against Microsoft".
  40. ^ Kenai.com (2011) Most common problems, found in the code of the reviewed applets.
  41. ^ "Sun - Microsoft 2002 lawsuit". Archived from the original on 21 December 2012. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  42. ^ Microsoft page devoted to the Sun - Microsoft 2002 lawsuit Archived 25 February 2010 at the Wayback Machine
  43. ^ "Oracle's complaint against Google for Java patent infringement". Scribd.com. Retrieved 14 June 2013.
  44. ^ "Oracle sues Google over Android". VentureBeat.
  45. ^ Josh Lowensohn (23 May 2012). "Jury clears Google of infringing on Oracle's patents". ZDNet. Retrieved 25 May 2012.
  46. ^ Joe Mullin (31 May 2012). "Google wins crucial API ruling, Oracle's case decimated". Ars Technica. Retrieved 1 June 2012.
  47. ^ "Sun's explanation about applet security".
  48. ^ "Java Applet & Web Start - Code Signing". Oracle. Retrieved 28 February 2014.
  49. ^ "What should I do when I see a security prompt from Java?". Oracle. Retrieved 28 February 2014.
  50. ^ Java Security FAQ Applet Security Restrictions by Mark Wutka
  51. ^ Sami Koivu. "Description of Calendar serialization security bug".
  52. ^ Java Security FAQ
  53. ^ Avirubin.com
  54. ^ Strategy.Wikimedia.org, proposal with discussion about Java applets in community sites
  55. ^ Ultrastudio.org, user editable educational site with full applet support
  56. ^ "Informit.com".
  57. ^ "Sid Stamm, Markus Jakobsson, Mona Gandhi (2006). A study in socially transmitted malware".
  58. ^ "* To be fair, significantly more World Wide Web users use the Netscape product than use the Microsoft product today, though the gap appears to be closing". www.wiley.com. Retrieved 17 March 2017. {{cite web}}: horizontal tab character in |title= at position 2 (help)
  59. ^ Rgagnon.com, calling a Java applet from JavaScript