This functionality is supported only if you are using the Classic Agent.
If your Java application (or applet) does not contain any Java children within JavaMainWin, your tests against the application will fail. However, you might configure the Java extension to prevent this kind of failure. Record against Java controls to make sure that the extension is enabled. For example, record a push button as a JavaAWTPushButton or a JavaJFCPushButton.