FACTOID # 58: 22% of American women aged 20 gave birth while in their teens. In Switzerland and Japan, only 2% did so.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

Encyclopedia > Java applet

A Java applet is an applet delivered in the form of Java bytecode. Java applets can run in a Web browser using a Java Virtual Machine (JVM), or in Sun's AppletViewer, a stand-alone tool for testing applets. Java applets were introduced in the first version of the Java language in 1995. Java applets are usually written in the Java programming language but they can also be written in other languages that compile to Java bytecode such as Jython. Image File history File links Java_Logo. ... An applet is a software component that runs in the context of another program, for example a web browser. ... Java bytecode is the form of instructions that the Java virtual machine executes. ... An example of a Web browser (Konqueror) A Web browser is a software application that enables a user to display and interact with text, images, and other information typically located on a Web page at a website on the World Wide Web or a local area network. ... A Java Virtual Machine (JVM) is a set of computer software programs and data structures which implements a specific virtual machine model. ... Sun Microsystems, Inc. ... appletviewer is a standalone program from Sun to run Java applets. ... Year 1995 (MCMXCV) was a common year starting on Sunday (link will display full 1995 Gregorian calendar). ... “Java language” redirects here. ... Jython, formerly known as JPython, is an implementation of the Python programming language written in Java. ...


Applets are used to provide interactive features to web applications that cannot be provided by HTML. Since Java's bytecode is platform independent, Java applets can be executed by browsers for many platforms, including Windows, Unix, Mac OS and Linux.There are open source tools like applet2app which can be used to convert an applet to a stand alone Java application/windows executable/linux executable. This has the advantage of running a Java applet in offline mode without the need for internet browser software. HTML, short for Hypertext Markup Language, is the predominant markup language for the creation of web pages. ... Bytecode is a binary representation of an executable program designed to be executed by a virtual machine rather than by dedicated hardware. ... A cross-platform (or platform independent) programming language, software application or hardware device works on more than one system platform (e. ... Windows redirects here. ... Filiation of Unix and Unix-like systems Unix (officially trademarked as UNIX®) is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy. ... This article or section does not adequately cite its references or sources. ... This article is about operating systems that use the Linux kernel. ...


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. The Java Servlet API allows a software developer to add dynamic content to a Web server using the Java platform. ...

Contents

Technical information

Java applets are executed in a sandbox by most web browsers, preventing them from accessing local data. The code of the applet is downloaded from a web server and the browser either embeds the applet into a web page or opens a new window showing the applet's user interface. The applet can be displayed on the web page by making use of the deprecated applet HTML element [1], or the recommended object element [2]. This specifies the applet's source and the applet's location statistics. For the Wikipedia sandbox for editing experiments see Wikipedia:Sandbox This article is about the computer security model. ... The inside/front of a Dell PowerEdge web server The term Web server can mean one of two things: A computer program that is responsible for accepting HTTP requests from clients, which are known as Web browsers, and serving them HTTP responses along with optional data contents, which usually are... The user interface is the part of a system exposed to users. ... In computing, an HTML element indicates structure in an HTML document and a way of hierarchically arranging content. ...


A Java applet extends the class java.applet.Applet, or in the case of a Swing applet, javax.swing.JApplet. The class 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). Example Swing widgets in Java 5. ...


Advantages of applets

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

  • it is simple to make it work on Linux, Windows and Mac OS i.e. to make it cross platform
  • 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 JRE the client will be forced to wait during the large download.
  • it runs in a sandbox, so the user does not need to trust the code, so it can work without security approval
  • it is supported by most web browsers
  • it will cache in most web browsers, so will be quick to load when returning to a web page but may get stuck in the cache and have issues when new versions come out.
  • it can have full access to the machine it is running on if the user agrees
  • it can improve with use: after a first applet is run, the JVM is already running and starts quickly, benefitting regular users of Java but the JVM will need to restart each time the browser starts fresh.
  • it can run at a comparable (but generally slower) speed to other compiled languages such as C++
  • it can be a real time application
  • it can move the work from the server to the client, making a web solution more scalable with the number of users/clients

A plugin (or plug-in) is a computer program that can, or must, interact with another program to provide a certain, usually very specific, function. ... // Computer users most often have to choose between functionality and security, but recent technology is changing this. ... An example of a Web browser (Konqueror) A Web browser is a software application that enables a user to display and interact with text, images, and other information typically located on a Web page at a website on the World Wide Web or a local area network. ... Look up cache in Wiktionary, the free dictionary. ... C++ (pronounced see plus plus, IPA: ) is a general-purpose programming language with high-level and low-level capabilities. ... Realtime redirects here. ... This article does not cite any references or sources. ... In computing, a client is a system that accesses a (remote) service on another computer by some kind of network. ...

Disadvantages of applets

A Java applet is open to any of the following disadvantages:

  • it requires the Java plug-in, which isn't available by default on all web browsers.
  • an implementation of the the Sun Java plug-in does not exist for 64-bit processors.1
  • it can not start until the Java Virtual Machine is running, and this may have significant startup time the first time it is used.
  • it is considered more difficult to build and design a good user interface with applets than with HTML-based technologies.
  • if untrusted, it has severely limited access to the user's system - in particular having no direct access to the client's disk or clipboard.
  • some organizations only allow software installed by the administrators. As a result, many users cannot view applets by default.
  • applets may require a specific JRE.


1. However, open source and freeware implementations are available, such as the GCJ plugin, and Blackdown Java plugin. A plugin (or plug-in) is a computer program that can, or must, interact with another program to provide a certain, usually very specific, function. ... An example of a Web browser (Konqueror) A Web browser is a software application that enables a user to display and interact with text, images, and other information typically located on a Web page at a website on the World Wide Web or a local area network. ... A plugin (or plug-in) is a computer program that can, or must, interact with another program to provide a certain, usually very specific, function. ... A Java Virtual Machine (JVM) is a set of computer software programs and data structures which implements a specific virtual machine model. ... The user interface is the part of a system exposed to users. ... HTML, short for Hypertext Markup Language, is the predominant markup language for the creation of web pages. ... Open source refers to projects that are open to the public and which draw on other projects that are freely available to the general public. ... The term Freeware refers to gratis proprietary software with closed source. ... The GNU Compiler for Java (GCJ) is a compiler for the Java programming language that is part of the GNU Compiler Collection (GCC). ... Blackdown Java is a port of Sun Microsystemss Java virtual machine to Linux by a group of volunteers led by Karl Asha. ...


Compatibility issues

Sun has made a considerable effort to ensure compatibility is maintained between Java versions as they evolve. For example, Microsoft's Internet Explorer, the most popular web browser since the late 1990s, used to ship with Microsoft's own JVM as the default. The MSJVM had some extra non-Java features added which, if used, would prevent MSJVM applets from running on Sun's Java (but not the other way round). 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. Development of MSJVM was frozen by a legal settlement, leaving many users with an extremely outdated Java virtual machine. Later, in October 2001, MS stopped including Java with Windows, and for some years it has been left to the computer manufacturers to ship Java independently of the OS. Most new machines now ship with official Sun Java. Sun Microsystems, Inc. ... Microsoft Corporation, (NASDAQ: MSFT, HKSE: 4338) is a multinational computer technology corporation with global annual revenue of US$44. ... Windows Internet Explorer (formerly Microsoft Internet Explorer, abbreviated MSIE), commonly abbreviated to IE, is a series of proprietary graphical web browsers developed by Microsoft and included as part of the Microsoft Windows line of operating systems starting in 1995. ... “(TM)” redirects here. ...


Some browsers (notably Netscape) do not do a good job of handling height=100% on applets which makes it difficult to make an applet fill most of the browser window (JavaScript can, with difficulty, be used for this). Having the applet create its own main window is not a good solution either, as this leaves the browser window as a largely useless extra window and leads to a large chance of the applet being terminated unintentionally by the user closing the parent browser window. It has been suggested that Client-side JavaScript be merged into this article or section. ...


Alternatives

Alternative technologies exist (for example, DHTML and Flash) that satisfy some of the scope of what is possible with an applet. Dynamic HTML or DHTML designates a technique of creating interactive web sites by using a combination of the static markup language HTML, a client-side scripting language (such as JavaScript) and the style definition language Cascading Style Sheets. ... It has been suggested that this article be split into articles entitled Adobe Flash Player and Talk:Adobe Flash #Merger proposal, accessible from a disambiguation page. ...


Another alternative to applets for client side Java is Java Web Start, which runs outside the browser. In addition to the features available to applets, a simple permissions box can give Java Web Start programs read and/or write access to specified files stored on the client, and to the client's clipboard. Java Web Start, introduced in Java 2, allows provisioning applications over the Web by clicking a desktop icon or a link on a website. ...


See also

JavaFX is a family of products and technologies from Sun Microsystems, first announced at the JavaOne developers conference in May 2007. ... The Java Servlet API allows a software developer to add dynamic content to a Web server using the Java platform. ... Java Web Start, introduced in Java 2, allows provisioning applications over the Web by clicking a desktop icon or a link on a website. ... ActiveX is a series of high-level, Internet/Intranet technologies Microsoft introduced in late 1990s. ... “Java language” redirects here. ...

External links


  Results from FactBites:
 
Java applet - Wikipedia, the free encyclopedia (933 words)
Java applets were introduced in the first version of the Java language in 1995.
Java applets are usually written in the Java programming language but they can also be written in other languages that compile to Java bytecode such as Jython.
Since Java's bytecode is platform independent, Java applets can be executed by browsers for many platforms, including Windows, Unix, Mac OS and Linux.There are open source tools like applet2app which can be used to convert an applet to a stand alone Java application/windows executable.
Java programming language - Wikipedia, the free encyclopedia (4265 words)
Java applets are programs that are embedded in other applications, typically in a Web page displayed in a Web browser.
Java servlets are server-side Java EE components that generate responses to requests from clients.
Java libraries that are the compiled byte codes of source code developed by the JRE implementor to support application development in Java.
  More results at FactBites »

 

COMMENTARY     

There are 1 more (non-authoritative) comments on this page

Share your thoughts, questions and commentary here
Your name
Your location
Your comments
Please enter the 5-letter protection code


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.