JavaScript is not Java: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(s/JavaScript/Javascript/g + minor edits)
(Best to avoid linking a given word to two different resources)
Line 1: Line 1:
==A source of much confusion==
==A source of much confusion==
[[Javascript]] is a completely separate technology from [[Java]]. Unfortunately, Java was the ‘in thing’ back in the days when [[wikipedia:Brendan Eich | Brendan Eich]] at [[wikipedia:Netscape Communications Corporation | Netscape]] created a programming language that was originally going to be called LiveScript, so they decided to rename it from LiveScript to JavaScript in the hope of catching the media’s interest.
[[Javascript]] is a completely separate technology from [[Java]]. Unfortunately, Java was the ‘in thing’ back in the days when [http://www.wikipedia.org/wiki/Brendan_Eich Brendan Eich] at [http://www.wikipedia.org/wiki/Netscape_Communications_Corporation Netscape] created a programming language that was originally going to be called LiveScript, so they decided to rename it from LiveScript to JavaScript in the hope of catching the media’s interest.


A [[wikipedia:JavaScript | Javascript]] script is usually a small series of commands that are often embedded in a webpage to do things like create fly-out menus, invoke pop-up windows, and validate form data. ''(Note, that Javascript is also a real programming language in which parts of [[XUL]]-based applications like [[Firefox]], [[Thunderbird]] and [[Mozilla Suite]] are written.)'' Javascript support is built in all XUL-based applications.
A Javascript script is usually a small series of commands that are often embedded in a webpage to do things like create fly-out menus, invoke pop-up windows, and validate form data. Support for Javascript is built into all XUL-based applications such as [[Firefox]], [[Thunderbird]] and [[Mozilla Suite]]. (Note that Javascript is actually a complete programming language, and it is one of the language in which Mozilla products are written.)


[[wikipedia:Java programming language | Java]] is another programming language which is used to create complicated things like games. These programs can also be embedded in webpages, in which case they are called ‘applets’.
Java is a programming language used to create stand-alone software applications (including games). Java programs can also be embedded in webpages, in which case they are called ‘applets’.
Java applets require additional software ([[wikipedia:Java virtual machine |Java virtual machine]] aka Java Runtime Environment) to be installed on your system. See [[Java]] page for details.
Java applets require additional software (the Java Runtime Environment) to be installed on your system.
 
For more information about running these technologies in your Mozilla product you should consult the [[Javascript]] and [[Java]] articles.
 
See also the [http://www.wikipedia.org/ Wikipedia] articles on [http://www.wikipedia.org/wiki/JavaScript Javascript] and [http://www.wikipedia.org/wiki/Java_programming_language Java].

Revision as of 12:12, 28 February 2005

A source of much confusion

Javascript is a completely separate technology from Java. Unfortunately, Java was the ‘in thing’ back in the days when Brendan Eich at Netscape created a programming language that was originally going to be called LiveScript, so they decided to rename it from LiveScript to JavaScript in the hope of catching the media’s interest.

A Javascript script is usually a small series of commands that are often embedded in a webpage to do things like create fly-out menus, invoke pop-up windows, and validate form data. Support for Javascript is built into all XUL-based applications such as Firefox, Thunderbird and Mozilla Suite. (Note that Javascript is actually a complete programming language, and it is one of the language in which Mozilla products are written.)

Java is a programming language used to create stand-alone software applications (including games). Java programs can also be embedded in webpages, in which case they are called ‘applets’. Java applets require additional software (the Java Runtime Environment) to be installed on your system.

For more information about running these technologies in your Mozilla product you should consult the Javascript and Java articles.

See also the Wikipedia articles on Javascript and Java.