Skip to main content

JAVA Extension

JAVA Extension applies to the automation of Java 1.6 and greater but below Java 14 applications. The support for JAVA 17 and the whole experience for JAVA automation is in progress.


  1. Install the extension in two ways:

    from clicknium import clicknium as cc

    # Install JAVA extension
  2. Click "Yes" on the User Account Control window to start the installation.
    java install admin confirm

  1. Refer to the console output for more installation details. Please note that the JAVA extension status will not change in VS Code extension since multiple JRE/JDK environments could exist.

Double-check the installation status:

Go to {JRE}/lib/, and check the file contents to see if the Clicknium settings exist.

Configration steps for JAVA 9+ environment

Remarks: For applications opened with JAVA 9, 11, and 14, there are a few more steps to set the bridge manually:

    1. Go to the Python site-package folder to find the JAVA bridge dependencies, such as C:\Program Files\Python\Lib\site-packages\clicknium\.lib\automation\JavaSupport
    1. Copy to current user folder(such as C:\Users\Administrator ) and rename to
    1. Add Java bridge dependencies in the step 1 folder to CLASSPATH or run with -cp in the command line. For example, there is demo Swing App from Oracle. FilechooserDemo is under the path 'demo\jfc\FileChooserDemo\'.
    1. Run with the command: java -cp 'D:\swingset2-1.0-SNAPSHOT.jar;C:\Program Files\Python\Lib\site-packages\clicknium\.lib\automation\JavaSupport\*' swingset.SwingSet2
  • Before installing the extension, please close all JAVA applications. Restart VS Code after the installation the first time.