# I am unable to capture control in my Java application built in Java version 6 and 7

Leapwork is designed to fully support Java desktop applications, allowing users to capture any control inside of Java applications. However, some users have experienced that Leapwork capture technology doesn't work with a Java application built with Java versions 6 and 7. In order to correct any capture control issues with Java version 6 and 7 applications, follow the following installation steps:

1. Install JDK/JRE on your **Studio** and **Agent** machine.
2. Change the _PATH_ of your **java.exe** to system _Environment variables_ (variable _Path_).

|     |     |     |
| --- | --- | --- |
|  | The _PATH_ is the system variable that your operating system uses to locate the needed executables from the command line. Here is how to set it: <br>   1. From the **Control Panel**, select **System**<br>   2. Select **Advanced system settings**<br>   3. Select **Environment variables**<br>   4. In the **System Variables** section, click on the **New** button in the **User variables** field<br>   5. `Specify the value of PATH` in **Variable name**<br>   6. Copy the path of the **bin** folder<br>   7. Paste the path of the **bin** folder in the **Variable value** field<br>   8. Click **OK**<br>The path is now permanently set and the final result should look something like this: |  |

3.  After that, install Leapwork **Studio** with _Administrator_ privileges.

**Note:** This article does not apply to Java apps built-in Java versions 8 or higher.

For any clarification, contact our [Priority Support](mailto:prioritysupport@leapwork%20.com).
