Can anyone tell me how to invoke Java application (GUI application) from win Runner using invoke command"

Showing Answers 1 - 1 of 1 Answers

bsa4321

  • Jul 14th, 2006
 

To use this functionality, environment variable _JAVA_OPTIONS should be updated on WR machine. The original content of this variable is similar ro this:

-Dawt.toolkit=mercury.awt.awtSW -Xrunmicsupp -Xbootclasspath/a:C:PROGRA~1COMMON~1MERCUR~1SHARED~1JAVAAD~1classes;C:PROGRA~1COMMON~1MERCUR~1SHARED~1JAVAAD~1classesmic.jar

Path to the parser JAR files should be added at the end:

-Dawt.toolkit=mercury.awt.awtSW -Xrunmicsupp -Xbootclasspath/a:C:PROGRA~1COMMON~1MERCUR~1SHARED~1JAVAAD~1classes;C:PROGRA~1COMMON~1MERCUR~1SHARED~1JAVAAD~1classesmic.jar;d:tempguilibjaxen-core.jar;d:tempguilibjaxen-jdom.jar;;d:tempguilibjdom.jar;d:tempguilibnekohtml.jar;d:tempguilibsaxpath.jar;d:tempguilibxerces.jar;d:tempguilibxml-apis.jar;d:tempguilibhtmlparser.jar

inside WR

jco_create("TestGUI", outWriter, "HTMLParser");

This parser can be used with any Java classes that can output their content to a Writer object, as HTMLParser extends Writer class.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions