setexternaljdk (sej)

Description

Configure external JDKs and specify a JDK as default.

Syntax

setexternaljdk -name <jdk_name> -path <jdk_path> [-setdefault true]

-name: Required. The name of the JDK.

-path: Required. Path of the JDK

-setdefault: Optional. Specify that the identified JDK is the default JDK. Valid value is true.

Examples

AllApplications>> setexternaljdk -name "JDK 21" -path "D:\JDK\21" -setdefault true
AllApplications>> setexternaljdk -name "JDK 17" -path "D:\JDK\17