Ranorex Help Center How can we help you?

Java AWT/Swing

The Ranorex Java Plug-In allows testing of Java Swing and Java AWT applications. With Ranorex 5.0.0 and higher, the instrumentation will be enabled automatically. If you have instrumented your Java Runtime Environment using the Ranorex Instrumentation Wizard of a previous Ranorex version, it's recommended to deactivate the obsolete instrumentation. To do so, start the Ranorex Instrumentation Wizard from command line with argument '/p:java':

<Ranorex Installation Folder>\Bin>Ranorex.InstrumentationWizard.exe /p:java

The Instrumentation Wizard tries to remove the obsolete Plug-In specific files from the Java Runtime Environment (JRE) of your choice.

You have 3 different choices:

  • Select a JRE from a list of running Java applications: Here you can choose the Java runtime based on the application under test. This is the preferred method, as you can determine exactly which Java runtime is being used by your application under test.
  • Select a JRE from a list of installed Java runtimes: Here you can choose the Java Runtime Environment from a list of all installed Java runtimes on your machine.
  • Specify a custom Java runtime directory: Here you can specify the folder holding the Java runtime.
Java Instrumentation Wizard

Java Instrumentation Wizard

After deactivating the obsolete Java AWT/Swing instrumentation, restart your application under test and your Ranorex tools to ensure that the automatically added instrumentation works correctly.
Finished Java Instrumentation

Finished Java Instrumentation