Windows system java version

How to Check Java Version on Mac or Windows

Java runs many of the applications that we use daily. Many applications cannot run on older versions of Java. Hence, it is essential to know which version is installed on your system.

In this tutorial, learn how to check the Java version on your Mac or Windows system.

How to Check if Java is Installed and version on mac or windows

  • A system running macOS or Windows
  • Access to the command-line/terminal window
  • A version of Java installed

Check Java Version on Mac

You can find the version of Java on macOS by:

  • using the GUI (Mac’s System Preferences)
  • prompting for the version in the terminal window

Option 1: Check Java Version on Mac Using the GUI

To check the Java version on Mac without using the terminal by searching for the Java Control Panel in the System Preferences.

Читайте также:  Vertical align css transform

1. Click the Apple icon in the menu bar to open the drop-down menu and navigate to System Preferences.

Finding system preferences on Mac

2. A new window opens with various icons and settings. Find and click the Java icon to open the Java Control Panel.

Opening the Java control panel on Mac os

3. Once the Java Control Panel opens, click the About button. A new window with Java version information should appear.

Finding the Java version on macOS from the system preferences

Option 2: Check Java Version on Mac Using the Terminal

If you prefer using the terminal, checking the Java version is a simple one-command process.

1. First, open the terminal. To do so, click the Spotlight Search button in the top-right of the screen.

Mac spotlight search button.

2. Type terminal in the search bar and open it by clicking on the icon in the search results.

Open terminal on Mac.

3. Once in the command line, run the command: java -version . The output should display the Java version installed on your MacOS.

java version 1.8.0_261 installed on macOS

To check the version of the primary Java compiler – javac (pronounced “java-see”) use the command:

Note: If you have a Linux system, refer to How To Check Java Version Installed On Linux.

Check Java Version on Windows

To check the Java version on a Windows computer, you can use:

Option 1: Check Java Version on Windows Using GUI

To find the Java version on your Windows without opening a terminal window, use the Control Panel.

1. Open the Windows menu in the bottom-left corner and type control panel in the search bar.

Searching for the control panel in the Windows start menu.

2. Find the Control Panel in the search results and click the icon to open it.

Opening the control panel on Windows

3. Move to the Programs directory.

screenshot of the Open programs directory in Windows

4. Find and click the Java icon to open the Java Control Panel.

example of opening the Java Control Panel

5. Once the control panel opens, click the About button.

Viewing information about the Java control panel

6. The About Java window should appear and display the Java version on your computer.

example output of java version 8 update 261 installed on windows

Option 2: Check Java Version on Windows Using Command Line

Another option to find the Java version on Windows is through the command line.

1. Open the Windows Start menu in the bottom-left corner and type cmd in the search bar.

Search for command prompt on Windows

2. Then, open the Command Prompt once it appears in the search results.

Open command prompt on Windows

3. A new window with the command prompt should appear. In it, type the command java -version and hit Enter. The output should display the Java version installed on your Windows system.

java version 1.8.0_261 installed on windows

You can also check the version of the Java’s primary compiler, javac, with the command:

This article showed you how to check the version of Java installed on a macOS or Windows system.

Источник

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.

How to Check Java Version

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.

Support Until

Источник

Как проверить версию Java в Windows и macOS?

Каждое программное обеспечение будет иметь свою версию после новых разработок в программном обеспечении. Версия программного обеспечения будет иметь уникальные номера или имена. Эти номера будут назначаться в порядке возрастания в соответствии с изменениями. Это также помогает пользователю проверить, обновлены ли его программы, сравнивая версию своего программного обеспечения с последней версией. Пользователи захотят проверить свою версию Java перед установкой последней версии. В этой статье мы покажем вам методы, с помощью которых вы можете легко проверить свою версию Java в Windows и macOS.

Версия на Java

Программы для Windows, мобильные приложения, игры — ВСЁ БЕСПЛАТНО, в нашем закрытом телеграмм канале — Подписывайтесь:)

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

Проверка версии Java через командную строку

Самый простой способ проверить версию Java — через командную строку. Командная строка — это мощный интерпретатор командной строки, с помощью которого пользователь может легко получить версию любого программного обеспечения с помощью одной команды. Если вы не можете проверить версию и получаете сообщение об ошибке «Java не распознается как внутренняя или внешняя команда», вам необходимо проверить, правильно ли установлена ​​Java и правильно ли установлены переменные среды.

  1. Удерживайте клавишу Windows и нажмите S, чтобы открыть функцию поиска Windows. Найдите «CMD» и нажмите клавиши CTRL + Shift + Enter, чтобы открыть его как администратора.
    Примечание. Вы также можете щелкнуть по нему правой кнопкой мыши и выбрать опцию «Запуск от имени администратора».Открытие командной строки от имени администратора
  2. Введите следующую команду, чтобы проверить версию Java, установленную в вашем system.java -versionПроверка версии Java
  3. Это покажет результат Java-версии с деталями.

Проверка версии Java через панель управления Java

Самый распространенный способ проверить версию программного обеспечения — щелкнуть опцию about в программном обеспечении. В большинстве программ эта опция доступна. Вы можете открыть панель управления Java через панель управления системы, и у нее будет кнопка О программе. Эта кнопка покажет вам версию установленной Java в вашей системе.

  1. Удерживайте клавишу Windows и нажмите S, чтобы открыть функцию поиска Windows. Найдите панель управления и нажмите клавишу Enter, чтобы открыть ее.Открытие панели управления
  2. Нажмите на опцию Просмотр по и выберите опцию Маленькие значки.Изменение варианта просмотра
  3. Теперь найдите Java в списке и щелкните по нему. На вкладке «Общие» нажмите кнопку «О программе», и она покажет сведения о версии Java.Проверка версии Java в Панели управления Java

Проверка версии Java с помощью программ и функций

Пользователи также могут просмотреть сведения о версии Java в разделе «Программы и компоненты», где будут перечислены все установленные программы. У большинства программ будет указан номер версии или название, перечисленные в разделе «Программы и компоненты». Выполните следующие шаги, чтобы попробовать это:

  1. Удерживайте клавишу Windows и нажмите R, чтобы открыть Run. Теперь введите «appwiz.cpl» и нажмите кнопку «ОК».Открытие программ и функций через Run
  2. Откроется окно «Программы и компоненты» панели управления. Поиск Java в списке. Вы сможете увидеть детали версии с ним.Поиск версии Java в списке
  3. Почти все программы будут иметь информацию о версии в окне «Программы и функции».

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

Проверка версии Java в macOS через терминал

Приложение «Терминал» позволяет пользователю управлять системой с помощью командной строки. Это быстрее, чтобы найти результат с помощью одной команды. Найти версию Java через терминал довольно легко. Выполните следующие шаги, чтобы найти свою версию Java через терминал:

  1. Удерживайте Command и нажмите клавишу пробела, чтобы открыть Spotlight, затем введите Terminal для поиска и нажмите Enter.Открытие терминала
  2. Теперь введите следующую команду, чтобы проверить версию Java в вашей system.java -versionПроверка версии Java в Терминале
  3. Он покажет результат версии Java с деталями.

Проверка версии Java в macOS через панель управления Java

Как и в операционной системе Windows, macOS также имеет системные настройки, аналогичные панели управления. Пользователь может найти панель управления Java в своем окне «Системные настройки». Есть кнопка о программе, которая покажет детали и версию установленной Java. Проверьте следующие шаги, чтобы попробовать это.

  1. Нажмите на логотип Apple в строке меню вверху и выберите опцию «Системные настройки». Теперь нажмите на иконку Java внизу.Открытие Java в Системных настройках
  2. Появится окно панели управления Java, нажмите кнопку «О программе», и в нем отобразятся сведения о версии Java.Проверка версии Java в панели управления Java
  • Как проверить, какая у вас версия Windows?
  • Как проверить версию Powershell в Windows 10, 8 и 7
  • Как установить Legacy Java SE 6 Runtime на MacOS
  • Как проверить версию и информацию о версии busybox

Источник

Оцените статью