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, Java runtime, or Apache Maven installation.

Java client generation cannot run because the generator process depends on these tools.

The emitter is run in an environment where javac, java, or mvn 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 and Apache Maven, add their executable directories to PATH, and verify:

Terminal window
javac -version
java -version
mvn -version