... ...
Home
Download
Docs
Examples
Login
Support
Forum
Contact Us
... ...

Detecting Java from JavaScript

You can detect whether Java is installed using a couple techniques. But different browsers have different behavior. Also there are many reports on the web of these techniques being buggy. This page can be run with different browsers to see how they behave.

We will now test both techniques on your browser:

1) navigator.javaEnabled() returns

2) Scan the list of plugins. This seems to work on Firefox and Safari but not on IE6.

IsJavaPluginInstalled() returns

Results of Tests Made with Various Browsers

 
navigator.javaEnabled()
plugin scan
IE6 on Windows XP with Java 1.6.0_03
true
false
IE6 on Windows XP with Microsoft Java
true
false
FireFox on Windows XP with Java 1.6.0_03
true
true
Safari on Mac OS X with Java
true
true
FireFox on Mac OS X with Java
true
true

Your browser's navigator.userAgent is

Your browser's list of navigator.plugins: