How to Install JDK and Python for ESP-IDF Development (Step-by-Step Guide)
In this detailed tutorial, you’ll learn how to properly install the Java Development Kit (JDK) and Python, two essential components required for setting up the ESP-IDF development environment for ESP32 projects.
Correct installation of these tools ensures a stable and error-free configuration when working with ESP-IDF and Eclipse IDE.
🔗 Official Download Links
JDK (Oracle Official Website):
https://www.oracle.com/au/java/technologies/downloads/#jdk23-windows
Python Official Downloads:
https://www.python.org/downloads/
Installing the Java Development Kit (JDK)
Begin by opening your browser and navigating to the official Oracle website using the link provided above.
The Java Development Kit (JDK) is available for:
-
Windows
-
macOS
-
Linux
In this tutorial, we focus on the Windows version.
Installation Steps:
-
Download the Windows installer.
-
Open the downloaded file.
-
Follow the on-screen instructions.
-
Keep the default installation settings unless you have a specific reason to modify them.
Once the installation is complete, the JDK will be ready for use in your development environment.
Installing Python (Compatible Version for ESP-IDF)
Python is a critical dependency for ESP-IDF. It is used for build management, configuration scripts, and other internal processes within the framework.
⚠️ Important Compatibility Note:
ESP-IDF version 5.3 is not compatible with Python 3.13.
For this reason, we install Python 3.11.7, which ensures full compatibility and stable performance.
Installation Steps:
-
Visit the official Python website.
-
Download Python 3.11.7 (64-bit Windows version).
-
Run the installer.
-
✔ Make sure to check the option: “Add Python to PATH”
-
Keep the default installation directory.
-
Click Install Now to begin installation.
When installation is complete, a confirmation message will appear indicating that setup was successful. Click Close to finish.