Plugin_JavaVer Property

 

Type: String

 

Returns a string with the build number of the Java plug-in, if installed. For IE on Windows this information is returned as "1.3-" if the version is 1.3 or earlier, and "1.4+" if the version is 1.4 or later. Other browsers that support this test will return more specific version information, such as "1.3.0_01".

 

Tip: Use this property in conjunction with JavaVersion to determine whether to load your applet

using an applet tag or an embed/object tag, depending on which JVM on the user's machine you prefer to have your applet run on.

 

Tip: Want to determine whether a visitor on Windows XP is using the Microsoft JVM (not installed with XP by default) or the Java plug-in? Just check the MSJVMBuild and Plugin_JavaVer property – if MSJVMBuild is an empty string yet Plugin_JavaVer tells you the plug-in is installed, then the visitor is using the Java plug-in instead of Microsoft’s JVM.

 

Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Enterprise Edition of BrowserHawk.

 

Example:

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "plugin_javaver "

bhObj.GetExtPropertiesEx

%>

<html>Your Java plug-in version is: <% = bhObj.Plugin_JavaVer %>

</html>

 

Special notes for this property:

 

See Also:

Additional Steps Required for Java based properties

JavaVersion Property

JavaVendor Property

JavaEnabled Property

MSJVMBuild Property

JavaAppletsProperty

GetExtPropertiesEx Method

SetExtProperties Method

CompareVersions Method