Как начать разработку программ на Java с помощью комплекта разработчика Java Development Kit (JDK)? Установка JDK (Java Development Kit).

Wi-fi 27.03.2020
Wi-fi
  1. Загрузить пакет JDK (Java Development Kit)
  2. Установить JDK (Java Development Kit)
  3. Добавить системную переменную JAVA_HOME

В этом уроке описано, как установить JDK на Windows. Для установки JDK на Linux воспользуйтесь этой инструкцией.

Загрузка пакета JDK (Java Development Kit)

Заходим на сайт компании Oracle и скачать файл установки отсюда

На странице загрузки выберите нужную версию Java (для Android Studio требуется версия 7 или 8 ) и нажмите кнопку загрузки JDK:

В таблице отмечаем согласие с условиями, выбрав пункт 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 Development Kit is the official development kit for the Java programming language. Java Development Kit contains the software and tools that you need to compile, debug, and run applets and applications written using the Java programming language.

JDK has a collection of programming tools, including javac, jar, and the archiver, which packages related class libraries into a single JAR file. This tool also helps manage JAR files, javadoc - the documentation generator, which automatically generates documentation from source code comments, jdb - the debugger, jps - the process status tool, which displays process information for current Java processes, javap - the class file disassembler, and other components are also included.

Key Contents include:

  • Development Tools (In the bin/ subdirectory) Tools and utilities that will help you develop, execute, debug, and document programs written in the JavaTM programming language.
  • Runtime Environment (In the jre/ subdirectory) An implementation of the Java Runtime Environment (JRE) for use by the JDK. The JRE includes a Java Virtual Machine (JVM), class libraries, and other files that support the execution of programs written in the Java programming language.
  • Additional Libraries (In the lib/ subdirectory) Additional class libraries and support files required by the development tools.
  • Demo Applets and Applications (In the demo/ subdirectory) Examples, with source code, of programming for the Javaplatform. These include examples that use Swing and other Java Foundation Classes, and the Java Platform Debugger Architecture.
  • Sample Code (In the sample subdirectory) Samples, with source code, of programming for certain Java API"s.
  • C header Files (In the include/ subdirectory) Header files that support native-code programming using the Java Native Interface, the JVM Tool Interface, and other functionality of the Java platform.
  • Source Code (In src.zip) Java programming language source files for all classes that make up the Java core API (that is, sources files for the java.*, javax.* and some org.* packages, but not for com.sun.* packages). This source code is provided for informational purposes only, to help developers learn and use the Java programming language. These files do not include platform-specific implementation code and cannot be used to rebuild the class libraries. To extract these file, use any common zip utility. Or, you may use the Jar utility in the JDK"s bin/ directory: jar xvf src.zip.

The JDK also comes with a complete Java Runtime Environment. This consists of a Java Virtual Machine and all of the class libraries present in the production environment, as well as additional libraries, internationalization libraries and the IDL libraries.

Java Development Kit is the official development kit for the Java programming language. Java Development Kit contains the software and tools that you need to compile, debug, and run applets and applications written using the Java programming language.

JDK has a collection of programming tools, including javac, jar, and the archiver, which packages related class libraries into a single JAR file. This tool also helps manage JAR files, javadoc - the documentation generator, which automatically generates documentation from source code comments, jdb - the debugger, jps - the process status tool, which displays process information for current Java processes, javap - the class file disassembler, and other components are also included.

Key Contents include:

  • Development Tools (In the bin/ subdirectory) Tools and utilities that will help you develop, execute, debug, and document programs written in the JavaTM programming language.
  • Runtime Environment (In the jre/ subdirectory) An implementation of the Java Runtime Environment (JRE) for use by the JDK. The JRE includes a Java Virtual Machine (JVM), class libraries, and other files that support the execution of programs written in the Java programming language.
  • Additional Libraries (In the lib/ subdirectory) Additional class libraries and support files required by the development tools.
  • Demo Applets and Applications (In the demo/ subdirectory) Examples, with source code, of programming for the Javaplatform. These include examples that use Swing and other Java Foundation Classes, and the Java Platform Debugger Architecture.
  • Sample Code (In the sample subdirectory) Samples, with source code, of programming for certain Java API"s.
  • C header Files (In the include/ subdirectory) Header files that support native-code programming using the Java Native Interface, the JVM Tool Interface, and other functionality of the Java platform.
  • Source Code (In src.zip) Java programming language source files for all classes that make up the Java core API (that is, sources files for the java.*, javax.* and some org.* packages, but not for com.sun.* packages). This source code is provided for informational purposes only, to help developers learn and use the Java programming language. These files do not include platform-specific implementation code and cannot be used to rebuild the class libraries. To extract these file, use any common zip utility. Or, you may use the Jar utility in the JDK"s bin/ directory: jar xvf src.zip.

The JDK also comes with a complete Java Runtime Environment. This consists of a Java Virtual Machine and all of the class libraries present in the production environment, as well as additional libraries, internationalization libraries and the IDL libraries.

    Java JDK 8 Update 202 (32-bit) LATEST

    Windows Vista / Windows 7 / Windows 8 / Windows 10

  • Select Version Java JDK 8 Update 202 (32-bit) Java JDK 8 Update 201 (32-bit) Java JDK 8 Update 181 (32-bit) Java JDK 8 Update 172 (32-bit) Java JDK 8 Update 171 (32-bit) Java JDK 8 Update 162 (32-bit) Java JDK 8 Update 152 (32-bit) Java JDK 8 Update 144 (32-bit) Java JDK 8 Update 141 (32-bit) Java JDK 8 Update 131 (32-bit) Java JDK 8 Update 121 (32-bit) Java JDK 8 Update 112 (32-bit) Java JDK 8 Update 111 (32-bit) Java JDK 8 Update 102 (32-bit) Java JDK 8 Update 92 (32-bit) Java JDK 8 Update 77 (32-bit) Java JDK 8 Update 74 (32-bit) Java JDK 8 Update 72 (32-bit) Java JDK 8 Update 66 (32-bit) Java JDK 8 Update 65 (32-bit) Java JDK 8 Update 60 (32-bit) Java JDK 8 Update 51 (32-bit) Java JDK 8 Update 45 (32-bit) Java JDK 8 Update 40 (32-bit) Java JDK 8 Update 31 (32-bit) View more...

    jdk-8u202-windows-i586.exe

    b8ae361cb74a110ebe7bf0f894be7f07

    Java Development Kit (32-bit) 2019 full offline installer setup for PC

Java Development Kit (also known as JDK) contains the software and tools that you need to compile, debug, and run applets and applications that you"ve written using the Java programming language. JDK has as its primary components a collection of programming tools, including javac, jar, and the archiver, which packages related class libraries into a single JAR file. This tool also helps manage JAR files, javadoc - the documentation generator, which automatically generates documentation from source code comments, jdb - the debugger, jps - the process status tool, which displays process information for current Java processes, javap - the class file disassembler, and so many other components.

The JDK also comes with a complete , usually called a private runtime. It consists of a Java Virtual Machine and all of the class libraries present in the production environment, as well as additional libraries only useful to developers, and such as the internationalization libraries and the IDL libraries.

Contents of the JDK:

Development Tools
(In the bin/ subdirectory) Tools and utilities that will help you develop, execute, debug, and document programs written in the JavaTM programming language.

Runtime Environment
(In the jre/ subdirectory) An implementation of the Java Runtime Environment (JRE) for use by the JDK. The JRE includes a Java Virtual Machine (JVM), class libraries, and other files that support the execution of programs written in the Java programming language.

Additional Libraries
(In the lib/ subdirectory) Additional class libraries and support files required by the development tools.

Demo Applets and Applications
(In the demo/ subdirectory) Examples, with source code, of programming for the Javaplatform. These include examples that use Swing and other Java Foundation Classes, and the Java Platform Debugger Architecture.

Sample Code
(In the sample subdirectory) Samples, with source code, of programming for certain Java API"s.

C header Files
(In the include/ subdirectory) Header files that support native-code programming using the Java Native Interface, the JVM Tool Interface, and other functionality of the Javaplatform.

Source Code
(In src.zip) Java programming language source files for all classes that make up the Java core API (that is, sources files for the java.*, javax.* and some org.* packages, but not for com.sun.* packages). This source code is provided for informational purposes only, to help developers learn and use the Java programming language. These files do not include platform-specific implementation code and cannot be used to rebuild the class libraries. To extract these file, use any common zip utility. Or, you may use the Jar utility in the JDK"s bin/ directory: jar xvf src.zip.

    Windows XP64 / Vista64 / Windows 7 64 / Windows 8 64

  • Select Version Java JDK 12.0.1 (64-bit) Java JDK 11.0.3 (64-bit) Java JDK 11.0.2 (64-bit) Java JDK 11.0.1 (64-bit) Java JDK 11 (64-bit) Java JDK 10.0.2 (64-bit) Java JDK 10.0.1 (64-bit) Java JDK 10.0 (64-bit) Java JDK 9.0.4 (64-bit) Java JDK 9.0.1 (64-bit) Java JDK 9 (64-bit) Java JDK 8 Update 202 (64-bit) Java JDK 8 Update 201 (64-bit) Java JDK 8 Update 181 (64-bit) Java JDK 8 Update 172 (64-bit) Java JDK 8 Update 171 (64-bit) Java JDK 8 Update 162 (64-bit) Java JDK 8 Update 152 (64-bit) Java JDK 8 Update 144 (64-bit) Java JDK 8 Update 141 (64-bit) Java JDK 8 Update 131 (64-bit) Java JDK 8 Update 121 (64-bit) Java JDK 8 Update 112 (64-bit) Java JDK 8 Update 111 (64-bit) Java JDK 8 Update 102 (64-bit) View more...

    jdk-7u67-windows-x64.exe

    031f3420a8f176f24c25b067fa7bcd25

Java Development Kit 64-bit (also known as JDK) contains the software and tools that you need to compile, debug, and run applets and applications that you"ve written using the Java programming language. JDK has as its primary components a collection of programming tools, including javac, jar, and the archiver, which packages related class libraries into a single JAR file. This tool also helps manage JAR files, javadoc - the documentation generator, which automatically generates documentation from source code comments, jdb - the debugger, jps - the process status tool, which displays process information for current Java processes, javap - the class file disassembler, and so many other components.

The JDK 64-bit also comes with a complete , usually called a private runtime. It consists of a Java Virtual Machine and all of the class libraries present in the production environment, as well as additional libraries only useful to developers, and such as the internationalization libraries and the IDL libraries. Download Java Development Kit Offline Installer Setup 64bit for Windows

Contents of the JDK:

Development Tools
(In the bin/ subdirectory) Tools and utilities that will help you develop, execute, debug, and document programs written in the JavaTM programming language.

Runtime Environment
(In the jre/ subdirectory) An implementation of the Java Runtime Environment (JRE) for use by the JDK. The JRE includes a Java Virtual Machine (JVM), class libraries, and other files that support the execution of programs written in the Java programming language.

Additional Libraries
(In the lib/ subdirectory) Additional class libraries and support files required by the development tools.

Demo Applets and Applications
(In the demo/ subdirectory) Examples, with source code, of programming for the Javaplatform. These include examples that use Swing and other Java Foundation Classes, and the Java Platform Debugger Architecture.

Sample Code
(In the sample subdirectory) Samples, with source code, of programming for certain Java API"s.

C header Files
(In the include/ subdirectory) Header files that support native-code programming using the Java Native Interface, the JVM Tool Interface, and other functionality of the Javaplatform. Download Java Development Kit Offline Installer Setup 64bit for Windows

Source Code
(In src.zip) Java programming language source files for all classes that make up the Java core API (that is, sources files for the java.*, javax.* and some org.* packages, but not for com.sun.* packages). This source code is provided for informational purposes only, to help developers learn and use the Java programming language. These files do not include platform-specific implementation code and cannot be used to rebuild the class libraries. To extract these file, use any common zip utility. Or, you may use the Jar utility in the JDK"s bin/ directory: jar xvf src.zip.

Рекомендуем почитать

Наверх