| Java calculator |
|---|
| JavaScript is |
These two technologies don't have a lot to do with each other.
While they apparently have some syntax elements in common, and historical antecedents, Java is a full programming language from Sun Microsystems; JavaScript is a simplified scripting language. JavaScript didn't have Java in its name until the last minute before the first version was released, the result of a marketing deal between Sun and Netscape.¹
Java is supposed to be a great boon for programmers, a "write once, run anywhere" system. To execute Java code, a PC must have a Java Runtime Environment (JRE) installed and enabled. The idea is that all platforms are supposed to have a Java Runtime available, and Sun does make JREs available for free download for different systems. Microsoft Windows XP, Mac OS X, and most Linux distributions include native Java support.
Any modern Web browser can execute JavaScript on its own.²
If you see a working calculator³ in the table in the right margin, then your PC has a JRE installed and Java is enabled. If there are no calculator buttons, check your Control Panel: if there's a Java item, then it would appear you have a JRE installed but it's disabled. You can enable it from Preferences in your Web browser, where you should find a check box for JavaScript also. If you have a JRE installed it should also appear in the list of programs at Control Panel, Add/Remove Programs ("J2SE Runtime Environment").
JavaScript is most widely seen used in Web publishing, although it does have other possible applications. Java is less commonly seen, and is used for applets on Web pages as here, occasionally for Website navigation, and for non-Internet software, such as certain extras features of the open-source freeware office suite OpenOffice.org (see also my OpenOffice.org pages on this site).
Use of Java applets on Web pages is controversial, and is considered a bleeding-edge annoyance in some circles. By me, for example; the one on this page, presented for diagnostic purposes, is the only Java applet on this site.