Содержание
- Способ 1: Панель управления Java
- Способ 2: Консоль «PowerShell»
- Способ 3: Командная строка
- Способ 4: Панель управления
- Способ 5: Проводник
- Вопросы и ответы
Получить базовые сведения об установленной платформе Java можно непосредственно из ее интерфейса, а именно – из панели управления Java.
- Откройте панель управления Java через поиск Windows или классическую «Панель управления».
- В открывшемся окне панели нажмите «About…».
- Появится окошко, в котором будет указана версия и сборка платформы.
Способ 2: Консоль «PowerShell»
Удобно для получения номера версии и сборки Java использовать встроенную консоль «PowerShell».
- Вызовите контекстное меню кнопки «Пуск» и выберите в нем опцию «PowerShell (администратор)».
- Выполните в открывшейся консоли команду
Get-Command Java | Select-Object Version
. Существует и более информативный вариант команды –Get-Command java | Select-Object -ExpandProperty Version
.
В результате в консоль будут выведены номер версии, обновления, сборки и ревизии.
Способ 3: Командная строка
В классической «Командной строке» команда получения номера версии платформы Java еще проще, чем в «PowerShell», но здесь есть один нюанс.
- Откройте «Командную строку» от имени администратора из поиска Windows или другим известным способом.
- Выполните команду
java -version
.
Обратите внимание на формат вывода: номер версии указывается второй цифрой, вначале идет 1 независимо от версии. Например, результат «1.8.0_331» станет означать, что на компьютере установлена версия платформы 8.0, сборка 331.
Способ 4: Панель управления
Номер версии и сборки также указан в окне апплета «Программы и компоненты», там же указывается название поставщика и дата установки платформы.
- Откройте апплет «Программы и компоненты» командой
appwiz.cpl
в окошке «Выполнить» (Win + R). - Найдите в списке элемент «Java» и посмотрите версию и номер сборки.
Способ 5: Проводник
Наконец, узнать номер версии и сборки платформы можно с помощью обычного «Проводника». Если пользователь не менял путь установки, папку Java можно будет найти в расположении C:\Program Files\Java
.
В этом каталоге располагается папка с файлами установки, в названии которой указывается номер версии и сборки в том же формате, в котором их выводит «Командная строка», смотрите Способ 3.
Еще статьи по данной теме:
Помогла ли Вам статья?
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.
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.
When it comes to Windows, there are two easy ways to check your Java version:
-
Check the Java Version Using the Control Panel
-
Check the Java Version Using the Command Line
If you’re a Mac user, you’ve also got two simple options:
-
Check the Java Version Using System Preferences
-
Check the Java Version Using the Terminal
Let’s break down each method in more detail.
How to Check Java Version in Windows
1. Check the Java Version Using the Control Panel
If you’re a Windows user, the Control Panel approach is quick and easy.
First, click on the magnifying glass icon at the bottom-left of your desktop.
Next, type in “About Java” in the search bar that appears, then click on the “About Java” app that appears. If it doesn’t come up, try “Configure Java”. If you’re still having no luck, you probably don’t have Java installed.
Once you click through on About Java or Configure Java, you’ll see a pop-up window indicating the current version and build number.
2. Check the Java Version Using the Command Line
You can also check your Java version in Windows using the command line.
First, click on the magnifying glass and type “cmd”, then click on the Command Line app icon that appears.
Now, enter the command java -version and you’ll see the version of Java listed.
The video below not only covers these two common methods but an additional third method as well.
How to Check Java Version in Mac
1. Check the Java Version Using System Preferences
To check your Java version on a Mac without leaving the GUI, start by clicking the Apple icon in the top left-hand corner of your screen, then select “System Preferences.”
Next, find and click on the Java icon in the list of programs shown.
Finally, click on the “About” button to see the version of Java you’re currently running.
2. Check the Java Version Using the Terminal
Checking your Java version on Mac using the terminal is similar to using the Windows command line.
First, find and click on the spotlight search bar in the top-right corner of your screen, then type in “terminal” and click on the terminal icon.
This will bring up the command line. From here, you enter the same command as in Windows, java -version to get your current version details.
Worth noting? On both Windows and Mac devices, you can use the command javac -version to check the version of your primary Java compiler. This video can show you how:
Checking Your Java Version
And there you have it: Four simple ways to quickly check your Java version and make sure you’ve got the newest, freshest Java served up and ready to go.
Для работы приложений, программ и некоторых сайтов требуется Джава. Обновления и доработки утилиты заставляют пользователей загружать новые версии так часто, что за названиями и номерами уже не следят. Поэтому актуальна проверка Java, несколько способов которой узнаете далее.
- Где находится Java на ПК
-
Как узнать версию Java на компьютере
- Проверка на Windows
- Проверка на Mac
- Проверка на Linux
- Как проверить версию Java онлайн
- Проверка Java в браузере
Чаще всего знать, где находится Java, требуется пользователям ОС Windows 10, 8, 7 и XP. На выбор предоставлено два варианта поиска. Первый способ:
- Откройте меню «Пуск». Обладателям Windows 10 на этом шаге откроется список программ по алфавиту, в котором легко найти Джаву и развернуть меню.
- Для других версий ОС нажмите «Все программы».
- В появившемся списке найдете папку с приложением.
- Далее выбирайте иконку в зависимости от того, что нужно проверить.
Второй способ:
- Откройте меню «Пуск».
- Запустите «Панель управления».
- Найдите Джава.
- Откроется окно для управления утилитой.
Пользователям Mac OS, чтобы проверить Джава, стоит воспользоваться следующей инструкцией:
- Нажмите на значок Apple в углу экрана.
- Перейдите в «Системные настройки».
- Щелкните на значок Джавы.
Владельцам ПК с установленной ОС Linux требуется ввести в командную строку код readlink -f $(which java). Это поможет открыть директорию с утилитой.
Не нашли Джаву на своем ПК, скачайте ее с нашего сайта.
Как узнать версию Java на компьютере
Проверить номер Джавы необходимо, когда стороннее приложение рекомендует использовать последнюю версию утилиты. Чтобы узнать, какая версия Java установлена, обратимся к инструкциям для интегрированных ОС.
Проверка на Windows
Узнать версию Java на компьютере с установленной ОС Windows можно двумя способами. Первый вариант проверить утилиту:
- Зайдите в панель управления Джавы по инструкции, изложенной выше.
- В первой вкладке выберите пункт About.
- В появившемся окне можно проверить номер приложения.
Быстрый способ: ввести код java –version в командную строку, которая вызывается нажатием комбинации горячих клавиш Win + R.
Второй вариант, как проверить Java на Windows 7, 8, 10:
- Зайдите в меню «Пуск».
- В поисковой строке наберите: «Установка и удаление программ».
- Сделайте одиночный клик по предложенному варианту с точным совпадением названия.
- Найдите Джава, чтобы проверить версию ПО.
Проверка на Mac
Для проверки версии программы Java на технике от Apple скачивается среда разработки JDK. Утилита активирует командную строку, в которой ведется работа.
Чтобы ответить на вопрос, как узнать версию ПО, достаточно проверить номер JDK. Для этого в командной строке вводится код java –version. Полученный ответ предоставляется в таком формате: «1.7.0_55».
Проверка на Linux
Пользователям Linux можно проверить версию утилиты тем же способом, что и владельцам компьютеров Apple. В командную строку вписывается java –version. Если номер модификации ниже, чем 1.6, то не обойтись без дополнительной установки вспомогательного ПО через YaST. https://youtu.be/0v_RhyeBAro Видео: Как узнать, какая версия Java установлена на компьютере с ОС Windows.
Как проверить версию Java онлайн
Это можно сделать через официальный сайт разработчиков. Для этого кликните по кнопке ниже или выполните инструкцию:
- На главной странице платформы найдите длинную гиперссылку, как на скриншоте.
- Нажмите кнопку для проверки.
- Итогом станет сообщение, содержащее строку с пометкой «Java version».
Если проверять онлайн, сайт сравнит новую программу с установленной и предложит загрузить обновление Джава на компьютер. Поэтому такой способ рациональнее, чем через «Панель управления».
Проверка Java в браузере
Чтобы проверить, включена ли Java в браузере, зайдите в его настройки. В разных обозревателях путь к Джаве отличается:
- Internet Explorer: «Сервис» – «Параметры обозревателя» – «Безопасность» – «Другой». Найти пункт о сценариях Джавы и выбрать «Включить».
- Mozilla Firefox: «Сервис» – «Дополнения» – «Плагины» – «Java». Остается убедиться, что модуль включен или стоит флажок на строке «Активировать всегда».
- Safari: «Параметры» – «Безопасность» – «Allow Plug-ins» – «Manage Website Settings». Выберите «Разрешить» в выпадающем списке на элементе Джава.
Для Chrome недоступно использование NPAPI, что исключает Джава из работы браузера. В Opera также не используется утилита.
30.05.2021
Просмотров: 3361
Работоспособность программ, установленных на ПК с Windows 10, зависит от множества компонентов, а именно: библиотек C++, Net Framework, а также Java. Данная платформа нужна для запуска и работы плееров, браузеров, небольших плагинов и т д. Однако как посмотреть версию Java в Windows 10, чтобы знать об актуальности установленного компонента.
Читайте также: Способы исправления ошибки JavaScript error occurred in the main process
Проверка версии Java на Windows 10 через командную строку
Для того, чтобы узнать установленную версию Java на Windows 10 через системную консоль, стоит запустить командную строку с правами Администратора и ввести такую команду:
java –version
Проверка версии Java через поисковик Windows 10
Если работать с командной строкой вам сложно или неудобно, тогда стоит нажать на кнопке «Пуск» и в поисковую строку ввести «About Java».
Далее выбираем «Open» или «Открыть» и в новом окне смотрим информацию об установленной версии Java.
В случае, если пункта «About Java» в поисковой выдаче нет, стоит попробовать ввести команду «Configure Java», а после нажать на кнопку «About».
Если же вы не можете посмотреть данные об установленной версии Java, то возможно, данный компонент поврежден или не установлен. В данном случае стоит перейти на официальный сайт Oracle и загрузить последнюю актуальную версию Java.
Download Article
Download Article
Do you need to check if the latest version of Java is installed on your Windows PC? An easy way to see if Java is up to date is to type a quick command at the Windows command prompt. No matter which version of Windows you’re using, you can type «java -version» into the command prompt (cmd) to see the version number of your Java installation. This wikiHow article will teach you how to use the command prompt to find out which version of Java (or the Java compiler) is installed on Windows 10, 11, and earlier versions.
Things You Should Know
- The java -v command displays the installed version of Java, while javac -v displays the version of the Java compiler.
- If you see the error «Java is not recognized as an internal or external command,» Java is either not installed, or its path is not in the system environment variables.
- You can always download the latest version of JDK and JRE from https://www.oracle.com/java/technologies/downloads.
-
1
Click the Windows Start menu. It’s the icon with Windows logo. By default, it’s in the bottom-left corner of the taskbar.
- You can also press the Windows key to open the Start menu.
-
2
Type cmd. This displays the Command Prompt icon at the top of the search results.
Advertisement
-
3
Click the Command Prompt icon
. It’s the black square icon with a small white «C:\» in the upper-right corner.
-
4
Type java -version and press ↵ Enter. Once you run this command, you’ll see the Java version next to «java version» on the first line.
- To check the version of the Java compiler, use javac -version.
- If you see an error that says «‘java is not recognized as an internal or external command, operable program or batch file,» Java is either not installed or not properly added to your path. Add Java to your system path to fix the error.
Advertisement
-
1
Right-click the Windows Start
icon. It’s the icon with the Windows logo. By default, it’s in the lower-left corner. Right-clicking this icon displays the System menu above the Start button.
-
2
Click Run. It’s the third option from the bottom of the System menu. This opens the «Run» program.
-
3
Type cmd.exe and click OK. Use the space next to «Open» in the Run program to type the command to open the Command Prompt.
-
4
Type java -version and press ↵ Enter. You’ll see the currently installed version of Java next to «java version.»
- To check the version of the Java compiler, use javac -version.
- If you see an error that says «‘java is not recognized as an internal or external command, operable program or batch file,» Java is either not installed or not properly added to your path. Add Java to your system path to fix the error.
Advertisement
-
1
Find out where Java is installed. If you’ve installed Java but you’re unable to check the version from the command line, you might just need to add the Java path to your system environment variables. But first, you’ll need to figure out where Java is installed:
- First, press Windows key + S and type java. If there are no results on your computer, you will need to install Java, which you can download from https://www.oracle.com/java/technologies/downloads.
- If Java is installed, right-click the Start menu and select File Explorer.
- Locate the Java installation directory, which will look something like this (depending on your version): C:\Program Files\Java. If you don’t see a Java installation directory in C:\Program Files, look in C:\Program Files(x86)\Java or C:\Java.
- Open the folder number containing the most recent version number for JRE or the JDK, e.g. C:\Program Files\Java\jdk17.0.4.1 or C:\Program Files\Java\ jdk1.8.X_XXX.
- Highlight the full path to the current folder at the top of File explorer and press Ctrl + C to copy.
-
2
Open your Advanced System Settings.
- On Windows 11, 10, and 8, press Windows key + S, type View advanced system settings, then click Advanced System Settings.
- On Windows 7, right-click My Computer, click Properties, then click Advanced.
-
3
Click the Environment Variables… button. You’ll see this near the bottom-right corner of the window.
-
4
Click New… under «System variables.» This is the bottom section. Adding a new item to System variables instead of User variables ensures that the Java path will be correct for all users on this PC, not just your own user account.
-
5
Type JAVA_HOME (for JDK) or JRE_HOME (for JRE). Create this variable name based on whether you installed the Java Development Kit or the Java Runtime Environment.
-
6
Paste the copied path to Java into the «Variable value» field. You can do this by right-clicking the bottom field and selecting Paste.[1]
-
7
Click OK to save your variable. Now that you’ve added Java to your path, you can successfully check your Java version from the command prompt. Just close the open command prompt window, open a new one, then run java -v to find your version.
Advertisement
Add New Question
-
Question
How do I check my version of Java with the command prompt?
Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time.
Computer Specialist
Expert Answer
Open Command Prompt, type java -version, then press Enter. This will print out the current version of Java that you’re running, as well as the build number.
-
Question
How do I set java path?
Hrithik Nitish
Community Answer
To check version from Windows command prompt, at first you have to download Java and then save the Java bin file address to Windows environment variable and than you have to open Command Prompt and enter Java where you have installed the Java version.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
-
If you want to remove an older version of Java, try the Java Uninstall Tool for Windows.[2]
This simple tool displays all currently installed versions of Java and gives you the option to delete old unneeded versions. Visit https://www.java.com/en/download/uninstalltool.jsp and click I agree to the Terms and Want to Continue to launch the tool. -
You can also check your Java version in the Java Control Panel app, which you’ll find in the Start menu. Just click About in Java Control Panel to view the version number.[3]
-
The easiest way to update Java is to click the Update tab on the Java Control Panel app and select Update Now.
Advertisement
About This Article
Article SummaryX
1. Click the Windows Start icon.
2. Type cmd to display the Command Prompt icon in the Start menu.
3. Click on the Command Prompt icon.
4. Type java -version in the Command Prompt.
5. Press Enter.
Did this summary help you?
Thanks to all authors for creating a page that has been read 489,159 times.