Skip to content

invalid-java-sdk-dependency

Id
@azure-tools/typespec-java/invalid-java-sdk-dependency

Severity: error

This diagnostic is issued when the Java emitter cannot find a supported JDK or Java runtime.

Java client generation cannot run because the generator process depends on a supported Java installation.

The emitter is run in an environment where java is missing from PATH, or where Java is older than the required version.

The message identifies the missing tool or unsupported Java version, for example:

Java Development Kit (JDK) is not found in PATH. Please install JDK 17 or above.

Install JDK 17 or later, add its executable directory to PATH, and verify:

Terminal window
java -version