Windows find java version

How To Find and Verify Installed Java Runtime Version?

Java Runtime Environment is used to run Java applications. Java Runtime Environment is called JRE. There are different versions of JRE most recent major versions are 6,7,8. Some of the applications generally require a different version because of comp ability problems. In this tutorial, we will look at how to get JRE or Java versions from various operating systems. If you want to learn JRE and differences with JDK please read the following tutorial.

Java or JRE Version Numbers

Java uses a bit different version numbers. All java versions first numbers is 1 actual major version numbers change according to release which is current 8 . Example Java version number is like below.

Determine Java Version in Windows From Command Line

We have different methods to determine Java or JRE version in windows. The first way is running java command in command line with version information. We will also provide -version option like below.

We can see that cırrent JRE or Java version is 1.8.0_144 . Here we can call 8 as a major version number.

Determine Java Version in Windows From GUI

We can use the Java menu which resides in the Control Panel.

And then In the General tab click to About button. This will open a new window that will provide information about the current Java or JRE version.

We can see and get the following information.

  • Version 8 specifies the main version of Java which is 8 in this example.
  • Update 144 specifies the minor version which numbered as 144.

Determine Java Version Linux (CentOS, RedHat, Fedora, Ubuntu, Debian, Kali, Mint)

We will use java command from the command line to get information about Java or JRE installation of Linux distributions.

We can see that a lot of information about Java and the platform is provided.

  • openjdk version «1.8.0_131» is the current version of Java. We can see that the Java implementation is OpenJDK which is an open version of Java for Linux distributions.
  • ubuntu is the operating system where Java is created.
  • OpenJDK 64-Bit Server VM specifies the Java CPU architecture which is 64 bit.
Читайте также:  По trassir server для windows

Determine Java Version Online

We can also use the currently installed Java version from the web. We will navigate to the following URL which is provided by Oracle Java. We will see a screen like below. First, we will click on the Agree and Continue button.

For security reasons, current popular browsers have disabled the Java or JRE by default. So Google Chrome, Mozilla Firefox, etc. will show a warning like Java is disabled or not installed . If Java is enabled for browser we will see the current version of Java without a problem.

How to check JDK version that installed on your computer

The Java development kit (JDK) contains tools for Java development, and the Java Runtime Environment (JRE) contains a JVM to convert byte code .class to machine code, and execute it, in short, the JRE runs Java program.

Check JDK Version
We can use javac -version to find out the version of the installed JDK. In the below example, the JDK version is 11.0.7

Check JRE Version
We can use java -version to find out the version of the installed JRE. In the below example, the JRE version is 1.8.0_252

The JDK and JRE versions can be different on the same computer. Multiple JDK and JRE versions are allowed on the same computer; it is better to find out which version is configured in the system classpath to run or compile the Java program.

1. Where JDK is installed?

The JDK also contains a JRE to run the Java program.

1.1 On Ubuntu or Linux, we can use which javac to find out where JDK is installed.

In the above example, the JDK is installed at /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/ .

1.2 On Windows, we can use where javac to find out where JDK is installed.

Do I need JDK or JRE?
For end-users, they need to install JRE to run the Java program, and the JDK is for developers. For the production environment, the deployment team only need to install JRE to run the Java program. However, developers often request to install the JDK, instead of the standalone JRE on the production server, because the JDK contains JRE and also extra tools to monitor and debug the running Java program.

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

Для работы приложений, программ и некоторых сайтов требуется Джава. Обновления и доработки утилиты заставляют пользователей загружать новые версии так часто, что за названиями и номерами уже не следят. Поэтому актуальна проверка Java, несколько способов которой узнаете далее.

Где находится Java на ПК

Чаще всего знать, где находится Java, требуется пользователям ОС Windows 10, 8, 7 и XP. На выбор предоставлено два варианта поиска.

Первый способ:

  1. Откройте меню «Пуск». Обладателям Windows 10 на этом шаге откроется список программ по алфавиту, в котором легко найти Джаву и развернуть меню.
  2. Для других версий ОС нажмите «Все программы».
  3. В появившемся списке найдете папку с приложением.
  4. Далее выбирайте иконку в зависимости от того, что нужно проверить.
Читайте также:  Ugoos x3 cube linux

Второй способ:

  1. Откройте меню «Пуск».
  2. Запустите «Панель управления».
  3. Найдите Джава.
  4. Откроется окно для управления утилитой.

Пользователям Mac OS, чтобы проверить Джава, стоит воспользоваться следующей инструкцией:

  1. Нажмите на значок Apple в углу экрана.
  2. Перейдите в «Системные настройки».
  3. Щелкните на значок Джавы.

Владельцам ПК с установленной ОС Linux требуется ввести в командную строку код readlink -f $(which java). Это поможет открыть директорию с утилитой.

Как узнать версию Java на компьютере

Проверить номер Джавы необходимо, когда стороннее приложение рекомендует использовать последнюю версию утилиты. Чтобы узнать, какая версия Java установлена, обратимся к инструкциям для интегрированных ОС.

Проверка на Windows

Узнать версию Java на компьютере с установленной ОС Windows можно двумя способами. Первый вариант проверить утилиту:

  1. Зайдите в панель управления Джавы по инструкции, изложенной выше.
  2. В первой вкладке выберите пункт About.
  3. В появившемся окне можно проверить номер приложения.

Быстрый способ: ввести код java –version в командную строку, которая вызывается нажатием комбинации горячих клавиш Win + R.

Второй вариант, как проверить Java на Windows 7, 8, 10:

  1. Зайдите в меню «Пуск».
  2. В поисковой строке наберите: «Установка и удаление программ».
  3. Сделайте одиночный клик по предложенному варианту с точным совпадением названия.
  4. Найдите Джава, чтобы проверить версию ПО.

Проверка на Mac

Для проверки версии программы Java на технике от Apple скачивается среда разработки JDK. Утилита активирует командную строку, в которой ведется работа.

Чтобы ответить на вопрос, как узнать версию ПО, достаточно проверить номер JDK. Для этого в командной строке вводится код java –version. Полученный ответ предоставляется в таком формате: «1.7.0_55».

Проверка на Linux

Пользователям Linux можно проверить версию утилиты тем же способом, что и владельцам компьютеров Apple. В командную строку вписывается java –version.

Если номер модификации ниже, чем 1.6, то не обойтись без дополнительной установки вспомогательного ПО через YaST.

Видео: Как узнать, какая версия Java установлена на компьютере с ОС Windows.

Как проверить версию Java онлайн

Это можно сделать через официальный сайт разработчиков. Для этого кликните по кнопке ниже или выполните инструкцию:

  1. На главной странице платформы найдите длинную гиперссылку, как на скриншоте.
  2. Нажмите кнопку для проверки.
  3. Итогом станет сообщение, содержащее строку с пометкой «Java version».

Если проверять онлайн, сайт сравнит новую программу с установленной и предложит загрузить обновление Джава на компьютер. Поэтому такой способ рациональнее, чем через «Панель управления».

Проверка Java в браузере

Чтобы проверить, включена ли Java в браузере, зайдите в его настройки. В разных обозревателях путь к Джаве отличается:

  • Internet Explorer: «Сервис» – «Параметры обозревателя» – «Безопасность» – «Другой». Найти пункт о сценариях Джавы и выбрать «Включить».
  • Mozilla Firefox: «Сервис» – «Дополнения» – «Плагины» – «Java». Остается убедиться, что модуль включен или стоит флажок на строке «Активировать всегда».
  • Safari: «Параметры» – «Безопасность» – «Allow Plug-ins» – «Manage Website Settings». Выберите «Разрешить» в выпадающем списке на элементе Джава.

Для Chrome недоступно использование NPAPI, что исключает Джава из работы браузера. В Opera также не используется утилита.

How do I check what version of Java I have installed?

I want to check what version of Java is installed on my PC before installing the latest Java update. How can I do this?

Читайте также:  Не запускается bittorrent windows 10

3 Answers 3

You can check your version of Java with any of the following methods.

Java Control Panel (Windows)

  1. Open the Start Menu and select Control Panel.
  2. From the Control Panel, select Programs -> Java to open the Java Control Panel.
  1. Select About to view your current version of Java.

Command Line (Windows)

  1. Press ⊞ Win + R and type cmd to open the Command Prompt.

  1. Type java -version and press Enter

Control Panel (Windows)

Note: This method may give inaccurate results if Java’s PATH has not been updated.

  1. Open the Start Menu and select Control Panel.
  2. From the Control Panel, select Programs -> Programs and Features.
  3. Scroll down the list of programs until you find the most recently installed version of Java

Terminal (MacOS)

  1. In the Finder, search for Terminal and launch Terminal.app

  1. Type java -version and press Enter

How to Check Java Version on Mac or Windows

PHP Code

  1. Home
  2. SysAdmin
  3. How to Check Java Version on Mac or Windows

Introduction

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.

Prerequisites

  • 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.

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

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

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

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.

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

3. Once in the command line, run the command: java -version . The output should display the Java version installed on your 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.

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