Databricks for JDK developers

Note

JDK 8 is fully supported. JDK 17 is in Public Preview.

This article provides a guide to developing notebooks and jobs in Databricks using Java Development Kit (JDK) 17. Learn how to create a cluster with JDK 17 to use Java in your notebooks and jobs. JDK 17 is in Public Preview for Databricks Runtime versions 13.1 and above.

Create a cluster that uses JDK 17

When you create a cluster, specify that the cluster uses JDK 17 for both the driver and executor by adding the following environment variable to Advanced Options > Spark > Environment Variables:

JNAME=zulu17-ca-amd64

If you are using ARM-based clusters (e.g. AWS graviton instances), use the following environment variable instead.

JNAME=zulu17-ca-arm64