JAVA Extension

JAVA Extension is compatible with Java 6 and newer versions up to Java 14. Support for JAVA 17 is currently underway.

1. Installation #

Install the extension with two method below:

1. Install the extension in VSCode Clicknium Extension
2. Install the extension via Clicknium Python command

from clicknium import clicknium as cc

# Install JAVA extension

2. Additional Steps⭐︎ #

(1) Please ensure that you verify this authentication before proceeding with the installation.

Note: Click “Yes” on the User Account Control window to start the installation.

(2) 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.

(3)Double-check the installation status:

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

3. JAVA 9+ environment #

This is how to 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:

Step1、 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

Step2、Copy “” to current user folder(such as“ C:\Users\Administrator” ) and rename to “

Step3、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\”.

Step4、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

Step5、Before installing the extension, please close all JAVA applications. Restart VS Code after the installation the first time.

What are your feelings
Updated on 29 November 2023