Перейти к содержимому

Как проверить версию java через cmd

  • автор:

How to Check Java Version

In today’s blog, we will be showing you how to check the Java version on Windows and macOS operating systems.

List of content you will read in this article:

Among all the programming languages, Java is considered to be the most commonly used language that has been adopted worldwide. There are numerous reasons why Java has gained popularity over other alternatives. There is no doubt that Java has been famous among all Fortune 500 companies and is widely recommended by developers. Its user-friendly and flexible nature makes it a go-to programming language for web developers and programmers.

The main reasons behind Java being popular is its fast speed, high-end security, and reliability. Along with such benefits, Java also offers private transmission, automatic memory management, and secure crucial information.

About Java

Introduced in the 1990s by James Gosling, Java is an object-oriented, robust, and secure programming language. The team started this Java project to develop a language suitable, especially for digital devices like set-top boxes, television, etc. At first, C++ was to be used in the Java project but was not considered for some reasons. Later, Gosling expanded C++ and led to another stage of a project Green, which was later renamed the ‘Greentalk’ project by Gosling and his team members. These project files had the file extension as .gt, which is later recognized as ‘OAK.’

The name ‘OAK’ was given to the project after an oak tree that was located outside Gosling’s office. But later on, the term ‘OAK’ was changed to Java. After various talks and brainstorming sessions, Gosling and his team come to multiple names- JAVA, DNA, SILK, BURY, etc. Still, they decided on JAVA after many discussions due to its uniqueness. This name (Java) comes up from a type of espresso bean. Gosling and his team members had come up with this name while having a cup of coffee near their office.

The main principles on which Java was built are- robust, portable, platform-independent, multi-thread, etc. In 1995, Java was recognized as one of the ten best products in Time magazine. Today, Java has been used in various fields like internet programming, mobile devices, games, etc. later, multiple versions of Java have been introduced over the years with new added features and functionalities.

Versions of Java

Over time, Java has introduced various versions with different and advanced features than the earlier version. Every version has fulfilled the drawback of their previous versions. Some of the versions are still supported, and some of them are not. Below is the list of all the Java versions introduced to date.

Проверка версии Java

В этой статье мы разберёмся, как проверить версию Java.

Способ 1: проверка версии Java из командной строки

Откройте командную строку. Если вы используете Windows, нажмите клавиши Win+R, затем введите текст cmd и нажмите Enter. Появится окно консоли. Затем введите следующую команду:

Если у вас установлена Java (JRE или JDK) и прописан путь к бинарным файлам, вы увидите номер версии:

Проверка версии Java в Windows

Для того, чтобы узнать версию Java в Linux, выполните ту же команду java -version:

Проверка версии Java в Linux

В данном примере установлена OpenJDK 8.

Способ 2: узнать версию Java с помощью Java Control Panel

При установке JRE или JDK в систему устанавливается приложение Java Control Panel. Откройте это приложение и нажмите кнопку «About». В открывшемся окошке вы найдёте номер версии Java.

How to Check Your Java Version in Windows & Mac

Doug Bonderud

Java remains the second-most popular coding language in the world according to the PYPL Index, and it ranks third among skilled professionals to develop high-performance applications across multiple platforms — only C and Python score higher.

web developer and his cat checking java version

As a result, you’ll often find Java running in the background of many Mac or Windows systems. However, if the version of Java you have isn’t up to date, applications may not work as intended — or may refuse to open at all.

In this piece, we’ll walk you through how to check your Java version in Mac and Windows to make sure the Java you’ve got is the one you need.

Как узнать версию Java в Windows 10

Как узнать версию Java на Windows 10

Получить базовые сведения об установленной платформе Java можно непосредственно из ее интерфейса, а именно – из панели управления Java.

  1. Откройте панель управления Java через поиск Windows или классическую «Панель управления». Как узнать версию Java на Windows 10-1
  2. В открывшемся окне панели нажмите «About…». Как узнать версию Java на Windows 10-2
  3. Появится окошко, в котором будет указана версия и сборка платформы. Как узнать версию Java на Windows 10-3

Способ 2: Консоль «PowerShell»

Удобно для получения номера версии и сборки Java использовать встроенную консоль «PowerShell».

  1. Вызовите контекстное меню кнопки «Пуск» и выберите в нем опцию «PowerShell (администратор)».

В результате в консоль будут выведены номер версии, обновления, сборки и ревизии.

Способ 3: Командная строка

В классической «Командной строке» команда получения номера версии платформы Java еще проще, чем в «PowerShell», но здесь есть один нюанс.

    Откройте «Командную строку» от имени администратора из поиска Windows или другим известным способом.

Обратите внимание на формат вывода: номер версии указывается второй цифрой, вначале идет 1 независимо от версии. Например, результат «1.8.0_331» станет означать, что на компьютере установлена версия платформы 8.0, сборка 331.

Способ 4: Панель управления

Номер версии и сборки также указан в окне апплета «Программы и компоненты», там же указывается название поставщика и дата установки платформы.

  1. Откройте апплет «Программы и компоненты» командой appwiz.cpl в окошке «Выполнить» (Win + R).

Способ 5: Проводник

Как узнать версию Java на Windows 10-10

Наконец, узнать номер версии и сборки платформы можно с помощью обычного «Проводника». Если пользователь не менял путь установки, папку Java можно будет найти в расположении C:\Program Files\Java .

В этом каталоге располагается папка с файлами установки, в названии которой указывается номер версии и сборки в том же формате, в котором их выводит «Командная строка», смотрите Способ 3.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *