Type: String
Returns the vendor of the Java Virtual Machine (JVM) version that an applet will execute under using the <applet> tag, or returns "" if undetectable. An example return value is "Microsoft Corp.".
Note: If you kept the default option of not checking for Java version / vendor during the installation, BrowserHawk did not prompt you during the install for the location of where this .class file should be stored. Instead the JVMDetector.class file was stored in your \Program Files\cyScape\BrowserHawk\JVM directory. You must copy this file to a directory accessible from your web site prior to checking the JavaVersion and JavaVendor properties.
Note: Use of this property requires the Enterprise Edition of BrowserHawk.
Special notes for this property:
This property is not available for IE under Macintosh, Netscape 3.x, IE 4.0, Safari versions prior to 1.2, or Opera 6.x and earlier any platform. In these cases this property will always return an empty string.
If the user’s JavaScript is disabled this property will not be available.
For users of IE on Windows - a return value of -1 can indicate that the user has disabled the scripting of Java applets in their security settings.
For this test BrowserHawk sends a 1KB, transparent applet to the browser. This is the JVMDetector.class applet distributed with the BrowserHawk files.
When first getting started with BrowserHawk - a return value of -2 can mean that the BrowserHawk JVMDetector.class file is not located in the same directory as the script checking this property, or if you are using the JVMCodeBase property, that it is not pointing to a valid web directory or a web directory which contains this .class file. In summary, a return result of -2 indicates that an exception occurred while trying to communicate with the applet.
This property is set to -1 if scripting of Java applets is disabled in the user's security settings, or -2 if an exception is thrown while communicating with the test applet.
For browsers other than Internet Explorer on Windows, a string value of "-3" is returned to indicated that no Java plug-in is installed, which is required to detect this property.
C# Example:
<%
ExtendedOptions options = new ExtendedOptions();
options.AddProperties("JavaVendor");
ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);
%>
<html>
JavaVendor: <% Response.Write(extBrow.JavaVendor); %>
</html>
See Also: