Databricks for JDK developers


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:


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