Установка JDK (Java Development Kit)
В этом уроке описано, как установить JDK на Windows. Для установки JDK на Linux воспользуйтесь этой инструкцией.
Загрузка пакета JDK (Java Development Kit)
Заходим на сайт компании Oracle и скачать файл установки отсюда
На странице загрузки выберите нужную версию Java (для Android Studio требуется версия 7 или 8) и нажмите кнопку загрузки JDK:
В таблице Java SE Development Kit отмечаем согласие с условиями, выбрав пункт Accept License Agreement и загрузите пакет для вашей ОС:

Например, для Windows следует выбрать файл jdk-XuXXX-windows-x64.exe для 64-разрядной (Windows x64) или jdk-XuXXX-windows-i586.exe для 32-разрядной (Windows x86). Разрядность системы, например, в Windows 7 можно узнать так: жмем “Пуск”, правой кнопкой мыши “Компьютер”, выбираем “Свойства”.

Установка пакета JDK (Java Development Kit)
Для установки Java необходимо иметь права администратора (перезагрузить компьютер, если необходимо войти с другой учетной записью). Проверяем, установлена ли Java на компьютере (Пункт «Установка и удаление программ в панели управления Windows») и, если да, то удаляем ее. Запускаем установщик jdk-XuXX-windows-x64.exe. После запуска установщика на экране будут отображаться окна установки, в них лучше ничего не менять, продолжать установку нажатием кнопки Next. В последнем окне нажимаем Close.
Добавляем системную переменную JAVA_HOME
Чтобы было можно компилировать и выполнять программы осталось прописать пути к компилятору Java в переменных среды Windows и перегрузить компьютер. Для этого запускаем Панель управления Windows и выбираем пункт «Система», а в появившемся окне слева – пункт «Дополнительные параметры системы». Откроется окно “Свойства системы”, в котором нажимаем кнопку “Переменные среды”.

В появившемся окне вам надо создать системную переменную – “JAVA_HOME”. Для этого нажимаем кнопку “Создать”. В поле “Имя переменной” пишем “JAVA_HOME”, а в “Значение переменной” необходимо добавить путь к установленному JDK, а именно путь к его подкаталогу bin, где находится файл компилятора. Если вы ничего не меняли при установке JDK, то путь будет таким: «C:\Program Files\Java\jdkНомерВерсии». Ниже на картинках приведен пример для версии Java 7.

Теперь нужно отредактировать переменную “Path”. Надо ее найти в списке и нажать кнопку “Изменить”. Будьте внимательны – здесь надо в поле “Значение переменной” просто дописать наш путь C:\Program Files\Java\jdk1.7.0_79\bin\ (для текущей версии java 8, соответственно, \jdk1.8.0_121\bin\ ) предварительно поставив “;” в конец уже существующего значения, ничего не удаляя! Пример показан на рисунке.

После внесения этих изменений, чтобы они вступили в силу, компьютер необходимо перегрузить.
После этого можно проверить корректность установки JDK. Для этого в Windows нажмите “Пуск” и введите команду cmd в поле “Найти программы и файлы”, или вызовите окно ввода комбинацией клавиш Windows+R и введите cmd.

В открывшейся консоли наберите java -version и нажмите Enter. Если вы видите версию java, а не сообщение об ошибке, все в порядке.
Java Downloads
JDK 21 is the latest long-term support release of Java SE Platform.
JDK Development Kit 21.0.1 downloads
JDK 21 binaries are free to use in production and free to redistribute, at no cost, under the Oracle No-Fee Terms and Conditions (NFTC).
JDK 21 will receive updates under the NFTC, until September 2026, a year after the release of the next LTS. Subsequent JDK 21 updates will be licensed under the Java SE OTN License (OTN) and production use beyond the limited free grants of the OTN license will require a fee.
Release information
- Online Documentation
- Installation Instructions
- Release Notes
- Documentation License
- JDK 21 Licensing Information User Manual (includes third-party licenses)
- Certified System Configurations
- Readme
JDK Development Kit 17.0.9 downloads
JDK 17 binaries are free to use in production and free to redistribute, at no cost, under the Oracle No-Fee Terms and Conditions (NFTC).
JDK 17 will receive updates under the NFTC, until September 2024. Subsequent JDK 17 updates will be licensed under the Java SE OTN License (OTN) and production use beyond the limited free grants of the OTN license will require a fee.
Release information
- Online Documentation
- Installation Instructions
- Release Notes
- Documentation License
- JDK 17 Licensing Information User Manual (includes third-party licenses)
- Certified System Configurations
- Readme
GraalVM for JDK 21.0.1 downloads
GraalVM for JDK 21 binaries are free to use in production and free to redistribute, at no cost, under the GraalVM Free Terms and Conditions (GFTC).
GraalVM for JDK 21 will receive updates under the GFTC, until September 2026, a year after the release of the next LTS. Subsequent updates of GraalVM for JDK 21 will be licensed under the GraalVM OTN License Including License for Early Adopter Versions (GOTN) and production use beyond the limited free grants of the GraalVM OTN license will require a fee.
Oracle GraalVM uses the Graal just-in-time compiler and includes the Native Image feature as optional early adopter technology.
Native Image is extensively tested and supported for use in production, but is not a conformant implementation of the Java Platform. GraalVM for JDK 21 without the Native Image feature included is available for customers at My Oracle Support.
Release information
- Online Documentation
- Installation Instructions
- Release Notes
- Licensing Information User Manual (includes third-party licenses)
- Certified System Configurations
GraalVM for JDK 17.0.9 downloads
GraalVM for JDK 17 binaries are free to use in production and free to redistribute, at no cost, under the GraalVM Free Terms and Conditions (GFTC).
GraalVM for JDK 17 will receive updates under the GFTC, until September 2024. Subsequent updates of GraalVM for JDK 17 will be licensed under the GraalVM OTN License Including License for Early Adopter Versions (GOTN) and production use beyond the limited free grants of the GraalVM OTN license will require a fee.
Oracle GraalVM uses the Graal just-in-time compiler and includes the Native Image feature as optional early adopter technology.
Native Image is extensively tested and supported for use in production, but is not a conformant implementation of the Java Platform. GraalVM for JDK 17 without the Native Image feature included is available for customers at My Oracle Support.
Release information
- Online Documentation
- Installation Instructions
- Release Notes
- Licensing Information User Manual (includes third-party licenses)
- Certified System Configurations
Script-friendly Download URLs
The URLs listed above will remain the same for update releases to allow their use in scripts.

Protect your investment—and more
Java SE subscribers get support for JDK 17, receive updates until at least October 2029, are entitled to GraalVM, Java Management Service, and bundled patch releases (BPRs) with fixes not yet available to nonsubscribers, and more.
Java SE subscribers have more choices
Also available for development, personal use, and to run other licensed Oracle products.
- Java 8
- Java 8 Enterprise Performance Pack
- Java 11
Java SE Development Kit 8u391
Java SE subscribers will receive JDK 8 updates until at least December 2030.
The Oracle JDK 8 license changed in April 2019
The Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK 8 licenses. This license permits certain uses, such as personal use and development use, at no cost — but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. FAQs are available here.
Commercial license and support are available for a low cost with Java SE Universal Subscription.
Java SE 8u391 checksums and OL 8 GPG Keys for RPMs
JRE 8
Java SE Runtime Environment 8u391
Server JRE 8
Server JRE (Java SE Runtime Environment) 8u391
Which Java 8 package do I need?
Software developers: Java SE Development Kit (JDK) For Java developers. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.
Running headless Linux workloads at or near your systems’ CPU or memory limits Enterprise Performance Pack brings significant memory and performance improvements including modern garbage collection algorithms, reduced memory usage and many other optimizations. Learn more
Administrators running applications on a server Server Java Runtime Environment (Server JRE). For deploying Java applications on servers. Includes tools for JVM monitoring and tools commonly required for server applications, but does not include browser integration (Java plug-in), auto-update, or an installer. Learn more
End user running Java on a desktop: Java Runtime Environment (JRE) Covers most end-users needs. Contains everything required to run Java applications on your system.
Release information
- Online Documentation
- Installation Instructions
- Release Notes
- Java SE Licensing Information User Manual (includes third-party licenses)
- Certified System Configurations
- JDK ReadMe
- JRE ReadMe
- Demos and Samples Archive
Установка JDK: пошаговая инструкция для новичков

Научитесь использовать инструменты анализа данных, включая языки программирования и средства визуализации.
Установка JDK на рабочий или домашний компьютер нужна для компиляции текстовой информации в команды, «понятные» для системы и запуска этих команд. Например, Вы разработчик приложения или его части и хотите, чтобы программа сделала определённое действие. Для этого вам нужно войти в командную строку Windows, Linux или другой системы и ввести часть командного кода, затем запустить его исполнение.
Но что если таких команд 10 или более, и все они требуют поэтапного запуска? На выручку придёт Java Development Kit (готовый комплект разработчика приложений), так как все среды разработки приложений, написанные на языке Java «понимают» язык компилятора JDK. Распространяется комплект абсолютно бесплатно компанией Oracle Corporation, поэтому его можно скачать в любой момент.
В нашей статье мы разберём, где скачать JDK, как установить на различные системы, что входит в комплект.
Содержание скрыть
Что такое JDK
Средства разработки «Ява» используют 3 основные технологии, которые позволяют пользователям писать, дорабатывать и запускать приложения:
- JDK (Java Development Kit) – для создания приложений;
- JVM (Java Virtual Machine) – виртуальная машина для запуска приложений;
- JRE (Java Runtime Environment) – платформа для исполнения приложений и JVM.
Вам необходимо скачать JDK, если вы собираетесь работать в таких Java-средах как:
- Sun Java Studio Creator;
- NetBeans IDE;
- IntelliJ IDEA;
- Borland JBuilder;
- JDeveloper;
- Eclipse и других.
Иногда для корректной работы среды требуется предварительная установка Java JDK, иначе среда разработчика просто не запустится или не сможет корректно взаимодействовать с системой. Хорошо, если в комплекте установки уже есть подходящая версия, но иногда пользователь должен сам установить JDK, а уже затем среду для разработки ПО.
Какие версии JDK доступны
В данный момент официально доступны все, но некоторые из них не имеют долгосрочной поддержки (LTS). Версии с Long Time Support (LTS) считаются более надёжными, стабильными и функциональными, ведь при их разработке авторы опасаются вводить непроверенные новшества, что гарантирует более длительную работу без сбоев среды или ПО.
В данный момент разработчики могут скачать и использовать версии JDK с 7 по 20, есть ранний доступ к 21-й с открытым исходным кодом. Но многие компании до сих пор используют версии 8-13, хотя это и даёт им меньше возможностей.
Компания Oracle пообещала «наладить» выпуск новых модификаций с частотой в каждые 6 месяцев. Поэтому, если вам интересно регулярное обновление библиотек, фреймворков и инструментов, то следите за новостями Java. Например, 20-я версия была запущена в марте 2023 года, но уже в сентябре можно будет попробовать 21-ю, если вы не готовы использовать ранний доступ уже сейчас.
Какая версия подходит для конкретной операционной системы
Подобрать подходящий для скачивания файл вам поможет конфигурация вашей операционной системы. Посмотреть её можно, нажав правой кнопкой мыши на «Мой компьютер» и выбрав пункт «Свойства»:
- если у вас 64-разрядная ОС, то версии 20 и предыдущие, вплоть до 7-8, будут чувствовать себя вполне комфортно;
- если 32-разрядная, то придётся использовать 12 и ниже.
Подготовка к установке JDK
Никаких особых настроек и параметров программное обеспечение не требует, главное найти, где скачать Java Development Kit нужной версии. Сделать это можно отсюда:https://jdk.java.net/21/ или с официальной страницы разработчикаhttps://www.oracle.com/java/technologies/downloads/archive/. Хотя существует много разработчиков JDK, и вы можете попробовать найти что-то другое.

ОСНОВЫ DATA SCIENCE
Научитесь использовать инструменты анализа данных, включая языки программирования и средства визуализации.
Установка JDK на Linux
Иногда установки JDK на Linux даже не требуется, так как в некоторых версиях он уже предустановлен. Чтобы это проверить введите команду:
- «sudo update-alternatives –config java» для CentOS или Ubuntu (без кавычек);
- «javac -version» для ArchLinux (без кавычек).
В системе может быть установлено более 1 среды или версии, тогда пользователь должен выбрать номер той версии, которая будет запускаться по умолчанию.
Если же установка необходима, то скачивайте с сайта-установщика:
- jdk-8u311-linux-x64.rpm для 64 битной системы;
- jdk-8u311-linux-i586.rpm для 32 битной системы.
Обратите внимание, что установить комплект разработчика может любой пользователь без root-прав, но для установки в системную папку потребуются root-права.
Установка JDK на Windows 10 и 11
Прежде чем установить JDK на Windows 11 или 10 проверьте её наличие через командную строку с помощью команды «java – -version». Если среда уже установлена, то можно начинать работу, если же нет, то скачиваете подходящую для вашей системы с официального сайта или другого источника. Затем запускаете установочный файл и ставите комплект как обычную программу. При необходимости сразу же скачиваете и устанавливаете JVM и JRE подходящей версии.
Установка JDK на Windows 7 или 8
Установка JDK на Windows 7 ничем не отличается от установки обычной программы из zip-архива. Вручную нужно будет настроить путь до версии, чтобы используемая среда разработки могла использовать инструменты JDK. Делается это так:
- Нажмите «Win+R»;
- в окне введите «sysdm.cpl» и подтвердите: «ОК»;
- во вкладке «Дополнительно» выберите «Переменные среды»;
- вы увидите список переменных сред, вариант «Создать»: имя переменной: JAVA_HOME;
- «Значение переменной»: укажите ваш путь до папки с JKD на компьютере (например, C:\Program Files\Java\jdk-12).
Не забывайте о соблюдении регистра.
Теперь вы знаете, как установить основной инструмент Java на свой компьютер, и какие условия ему нужны для работы.

ОСНОВЫ DATA SCIENCE
Научитесь использовать инструменты анализа данных, включая языки программирования и средства визуализации.
Installation
The current Gradle release is 8.4. You can download binaries and view docs for all Gradle versions from the releases page.
- Prerequisites
- Additional resources
- Installing with a package manager
- Installing manually
- Upgrade with the Gradle Wrapper
- Older Releases
- Command-Line Completion
Prerequisites
Gradle runs on all major operating systems and requires only a Java JDK version 8 or higher to be installed. To check, run java -version :
$ java -version java version "1.8.0_121"
Additional resources
- On-demand and live online training is available for free to Gradle users.
- Self-paced tutorials are a good place to try Gradle with a variety of languages in addition to the docs.
- Gradle has a visual build inspection tool: Build Scan™.
- Finally, the Gradle Newsletter is a great way to keep UP-TO-DATE , with issues crafted monthly.
Installing with a package manager
SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix-based systems.
$ sdk install gradle 8.4
Homebrew is “the missing package manager for macOS”.
$ brew install gradle
Other package managers are available, but the version of Gradle distributed by them is not controlled by Gradle, Inc. Linux package managers may distribute a modified version of Gradle that is incompatible or incomplete when compared to the official version (available from SDKMAN! or below).
› Additional helpful information
Installing manually
Step 1. Download the latest Gradle distribution
The current Gradle release is version 8.4, released on 04 Oct 2023. The distribution zip file comes in two flavors:
- Binary-only
- Complete, with docs and sources
If in doubt, choose the binary-only version and browse docs and sources online.
Need to work with an older version? See the releases page.
Step 2. Unpack the distribution
Linux & MacOS users
Unzip the distribution zip file in the directory of your choosing, e.g.:
$ mkdir /opt/gradle $ unzip -d /opt/gradle gradle-8.4-bin.zip $ ls /opt/gradle/gradle-8.4 LICENSE NOTICE bin getting-started.html init.d lib media
Microsoft Windows users
Create a new directory C:\Gradle with File Explorer.
Open a second File Explorer window and go to the directory where the Gradle distribution was downloaded. Double-click the ZIP archive to expose the content. Drag the content folder gradle-8.4 to your newly created C:\Gradle folder.
Alternatively you can unpack the Gradle distribution ZIP into C:\Gradle using an archiver tool of your choice.
Step 3. Configure your system environment
Linux & MacOS users
Configure your PATH environment variable to include the bin directory of the unzipped distribution, e.g.:
$ export PATH=$PATH:/opt/gradle/gradle-8.4/bin
Microsoft Windows users
In File Explorer right-click on the This PC (or Computer ) icon, then click Properties -> Advanced System Settings -> Environmental Variables .
Under System Variables select Path , then click Edit . Add an entry for C:\Gradle\gradle-8.4\bin . Click OK to save.
Step 4. Verify your installation
Open a console (or a Windows command prompt) and run gradle -v to run gradle and display the version, e.g.:
$ gradle -v ------------------------------------------------------------ Gradle 8.4 ------------------------------------------------------------
› Additional helpful information
Upgrade with the Gradle Wrapper
If your existing Gradle-based build uses the Gradle Wrapper, you can easily upgrade by running the wrapper task, specifying the desired Gradle version:
$ ./gradlew wrapper --gradle-version=8.4 --distribution-type=bin
Note that it is not necessary for Gradle to be installed to use the Gradle wrapper. The next invocation of gradlew or gradlew.bat will download and cache the specified version of Gradle.
$ ./gradlew tasks Downloading https://services.gradle.org/distributions/gradle-8.4-bin.zip .
› Additional helpful information
Older Releases
You can find all releases and their checksums on the releases page.
Command-Line Completion
Command-line completion scripts are available for bash and zsh. This provides completion for Gradle tasks and command-line options.
