|
Website by Michael Horowitz
|
|
|
Although most current web browsers are capable of running Java applets (programs), this support can be disabled. I know of three ways to tell if your browser is Java enabled:
The HTML test below should indicate if your browser currently supports Java.
| LIVE |
This web browser can run Java applets. |
A browser that supports Java displays: "This web browser can indeed run Java applets" and it should look like:
| sample | ![]() |
A browser that does not support Java displays: "This web browser can NOT run Java applets" and should look like:
| sample | ![]() |
How this works: Applets are included in a web page with the HTML APPLET tag.
Web browsers that do not support Java (either because they can not or because a
configuration option has been set to disable Java) are supposed to display text
inside the <APPLET> tag. The above test is coded using HTML that looks
like:
This
web browser can <applet ...>NOT</applet> run Java applets
If the applet can run, it displays the word "indeed" in blue. If it can not run, the web browser is supposed to display the word "NOT".
Note that Firefox 1.0 with Java and the Adblock extension wraps the display on two lines (seems to be a Firefox bug). Firefox 1.0 without Java and with no extensions, does not correctly display the word "NOT" (another bug). Instead it displays a green jigsaw puzzle piece.
JavaScript is a programming language run by your web browser. If your browser supports JavaScript and this support is enabled, then we can use a JavaScript function to report on whether Java is enabled or not. This is what JavaScript reports about your browser:
This is done with a JavaScript command much like:
document.write("Is Java enabled? " + navigator.javaEnabled() );
Note: I've been told more than once that under Windows XP SP2 with IE6 that this test reports "True" even if Java is not installed. I haven't confirmed this myself. I did notice that on an XP system that just had Sun's Java un-installed (prior to installing a newer version), this reported "True" because it fell back to using Microsoft's Java. I've also been told that on Windows ME, IE 5.5 falsely reports Java as "true" when there is no Java instaled.
A reader of this page suggested this technique (thanks Ed). If Java is enabled it should say "I'm here" in between the arrows below.
This is done using the following JavaScript and Java commands:
<script> document.write(new
java.lang.String("I'm here")); </script>
The bad news is that this does not work with Internet Explorer v6 (all patches as of May 2005, Windows 2000). It did work, however, with Firefox v1.0.4. (Windows 2000)
Mozilla 1.6 users can manually check if Java is enabled. Click on Tools -> Web Development. If there is an option for the "Java Console" then Java is enabled in your copy of Mozilla. If you turn on the Java console, it will display the Java version. Mozilla users can also click on Help -> About Plug-ins. If Java is not installed, this will show nothing. However, at least on my PC, when Java was installed it showed seven different Java plug-in entries.
Firefox 1.0.4 users can manually check with Tools -> Options ->
Web features -> checkbox for "Enable Java". Another approach is to
enter the following in the address bar:
about:plugins
If Java is installed there will be multiple entries labeled "Java
Plug-in". I don't know how to decode the true meaning of all these entries,
but they include version numbers and an indication of whether they are enabled.
If Java is installed, but not enabled, Sun has instructions to Enable the JRE through your Web browser and to Enable the JRE through the "Java™ Plug-in Control Panel". Sun also has a Test Java Virtual Machine web page that did not work for me. See the Installing page for more on this.