JavaVMVersion Property (Process and Browser Objects)

Applies to TestComplete 15.40, last modified on July 05, 2022

Description

Use the JavaVMVersion property to get the version number of the Java virtual machine(s) loaded in the specified application process.

Declaration

TestObj.JavaVMVersion(Index)

Read-Only Property String
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Index [in]    Required    Integer    

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The property has the following parameter:

Index

Specifies the index (zero-based) of the loaded virtual machine. The total number of loaded virtual machines is specified by the JavaVMCount property. In most cases, only one virtual machine is loaded into the process, so you will need to use JavaVMVersion(0) to get its version.

Property Value

A string holding the version number of the specified Java virtual machine.

Remarks

The property is available only if the Java Application Support plugin is installed.

The property is added only to processes of Java applications.

If the tested application is launched with the -verbose or -verbose:class command-line argument, the JavaVMVersion property returns an error. For more information about the issue and workarounds, see Troubleshooting Java Applications

See Also

JavaVMCount Property
Testing Java Applications

Highlight search results