Integrating Java Applications
Interrogate Java applications by using the Windows adapter. For more information, see Windows Adapter. Specifics for Java applications are:
Paths set on Studio should be identical to those on Runtime.
The simplest way to determine if something is Java is to use Process Explorer and search for the jvn.dll, which is the Sun Java virtual machine that runs the Java .class files. A Java application may display the Java splash screen.
Complete the Windows adapter Arguments property. For more information, see Setting the Classpath for Java Applications.
Complete the Windows adapter Path property for the Java application. Note that java.exe opens a diagnostic console and javaw.exe does not. Therefore, we recommend that you use the javaw.exe application for the path.
Start the Interrogator and
begin interrogating the application. When Studio detects a Java application,
it creates the Java Controls tab.
Note: When interrogating the second page of a multi-page Java
application, the matching check marks from the captured controls on
the first page remain visible.
Because of the structure of some Java applications, the Interrogator might not uniquely identify a control (the message "Unable to uniquely match the control" displays in the Interrogation form). Through the use of match rules, provide additional criteria to uniquely identify any control. For more information, see Modifying Match Rule Properties.
Menus in a Java application should behave identically to menus in a Windows application with the following exception – to access menu items in Java, interrogate the menu bar itself, and then right-click on the menu bar object in Object Explorer and select the Add menu items option.
The PerformSynchronousClick methods containing a timeout parameter are not applicable for controls in Java 1.4 - 1.8 applications. For more information, see General Windows Control Properties, Methods, and Events.
Studio supports grids in Java applets and applications. For definitions of the properties, methods, and events of the grid, see the Help pane in Object Explorer.
Note: If you set the Windows adapter HideApplicationAtRuntime property to True and then call the Show method in your solution, the Java application will display, however, the TaskBar icon will remain hidden.
Related information
Integrating an Application into a Project
Interrogating a Windows Application
Privacy | Trademarks | Terms of Use | Feedback
Updated: 18 June 2020
© 2016 - 2020 Pegasystems Inc. Cambridge, MA All rights reserved.