- How to Check Java Version on Mac or Windows
- Check Java Version on Mac
- Option 1: Check Java Version on Mac Using the GUI
- Option 2: Check Java Version on Mac Using the Terminal
- Check Java Version on Windows
- Option 1: Check Java Version on Windows Using GUI
- Option 2: Check Java Version on Windows Using Command Line
- Как определить версию Java
- Проверка онлайн
- Windows
- How to Check Java Version
- About Java
- Versions of Java
- How To Check Java Version In CMD
- Step 1: Summoning the Command Prompt
- Step 2: The Magic Words
- Step 3: Deciphering the Ancient Texts
- Step 4: Updating Java (If Necessary)
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.
- 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.
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.
2. Find the Control Panel in the search results and click the icon to open it.
3. Move to the Programs directory.
4. Find and click the Java icon to open the Java Control Panel.
5. Once the control panel opens, click the About button.
6. The About Java window should appear and display the Java version on your computer.
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.
2. Then, open the Command Prompt once it appears in the search results.
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.
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.
Как определить версию Java
wikiHow работает по принципу вики, а это значит, что многие наши статьи написаны несколькими авторами. При создании этой статьи над ее редактированием и улучшением работали, в том числе анонимно, 12 человек(а).
Количество просмотров этой статьи: 86 514.
На одном компьютере может быть установлено несколько копий Java, и, если у вас несколько браузеров, каждый из них может использовать свою версию или не использовать вовсе. В этой статье описано несколько способов, как это проверить.
Проверка онлайн
Откройте новое окно в вашем браузере и кликните сюда для перехода на сайт Java. Oracle, разработчик платформы Java, создал простую страницу, которая проверяет установленную у вас Java и сообщает точную версию. Это можно сделать из любой операционной системы.
При появлении запроса от программы безопасности вашего браузера, позвольте Java подтвердить версию.
Через несколько секунд проверьте результаты! Они будут включать номер версии и номер обновления. Номер версии наиболее важен, если вы проверяете на совместимость с другими программами.
Windows
Нажмите сочетание клавиш windows + r и введите «cmd» и в открывшейся командной строке введите java -version. Результат будет выглядеть примерно так: Java version «1.6.0_03 Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing).
На компьютере, на котором не установлена ни одна из версий Java от Sun Microsystems, это приведет к сообщению об ошибке: ‘java’ is not recognized as an internal or external command, operable program or batch file (‘Java’ не распознается как внутренняя или внешняя команда, исполняемая программа или пакетный файл).
На компьютере, на котором установлена только очень старая версия Java от Microsoft, будет такое же сообщение об ошибке. На машине с несколькими версиями Java эта команда вернет версию JVM по умолчанию.
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.
Support Until
How To Check Java Version In CMD
Ever hit a coding snag, unsure of your Java version? Our guide walks you through the process of checking your Java version in CMD. It’s as easy as making toast, and we promise, no toasters will be harmed!
Ever found yourself in the middle of a coding marathon, fingers flying across the keyboard, when suddenly you hit a snag? You’re not sure if your Java version is up to date or if it’s as outdated as a floppy disk.
Well, fear not, dear reader. We’re here to guide you through the process of checking your Java version in CMD. It’s so easy, you could do it while making toast. And we promise, no toasters will be harmed in the process.
Important disclosure: we’re proud affiliates of some tools mentioned in this guide. If you click an affiliate link and subsequently make a purchase, we will earn a small commission at no additional cost to you (you pay nothing extra). For more information, read our affiliate disclosure.
Step 1: Summoning the Command Prompt
First things first, we need to summon the mystical Command Prompt. It’s not as hard as summoning a genie, and you don’t need any magical lamps. Just press Win + R , type cmd into the run box, and hit Enter . Voila! You’ve successfully summoned the Command Prompt. It’s like a genie, but for your computer.
Step 2: The Magic Words
Now that you’ve got the Command Prompt open, it’s time to say the magic words. No, it’s not «abracadabra» or «hocus pocus», it’s java -version . Type that into the Command Prompt and hit Enter .
Step 3: Deciphering the Ancient Texts
Once you hit Enter , you’ll see some text pop up. It might look like ancient hieroglyphics, but it’s actually just your Java version. It’ll look something like this:
java version "1.8.0_271" Java(TM) SE Runtime Environment (build 1.8.0_271-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
The first line is the one you’re interested in. The number after version , in this case 1.8.0_271 , is your Java version. If it’s lower than the current version, it might be time for an update. It’s like checking the expiration date on a carton of milk, but for your Java version.
Step 4: Updating Java (If Necessary)
If your Java version is outdated, it’s time for an update. It’s like getting a new haircut, but for your Java version. You can download the latest version of Java from the official Java website. Once it’s downloaded, just follow the prompts to install it. Easy peasy lemon squeezy.