Current java version windows

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.

Читайте также:  Math pow in javascript

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

Источник

How to Check Your Java Version in Windows and macOS?

Every software will have a different version after the new developments in the software. The version of the software will have unique numbers or names. These numbers will be assigned in increasing order according to the changes. It also helps the user to check if their programs are up to date by comparing the version of their software with the latest version. Users will want to check their Java version before installing the latest version. In this article, we will show you the methods through which you can easily check your Java version on Windows and macOS.

Checking Java Version in Windows

Checking Java Version through Command Prompt

The easiest method for checking the Java version is through the command prompt. The command prompt is a powerful command-line interpreter through which the user can easily get the version of any software with a single command. If you are unable to check the version and getting an error that “Java is not recognized as an internal or external command“, then you need to check if the Java is installed correctly and environment variables are set correctly.

    Hold the Windows key and press S to open the Windows search feature. Search for ‘CMD‘ and press CTRL + Shift + Enter keys altogether to open it as an administrator.
    Note: You can also right-click on it and choose the Run as administrator option.

Type the following command to check the Java version that is installed on your system.

  • This will show the result of the java version with details.
  • Checking Java Version through Java Control Panel

    The most common way to check a software version is by clicking the about option in the software. Most of the software will have this option available in it. You can open the Java control panel through the system’s control panel and it will have an About button. That button will show you the version of the installed Java on your system.

    1. Hold the Windows key and press S to open the Windows search feature. Search for the Control Panel and press the Enter key to open it.
    2. Click on the View by option and choose the Small icons option.
    3. Now search for the Java in the list and click on it. In the General tab, click on the About button and it will show the version details of the Java.

    Checking Java Version through Programs and Features

    The users can also view the Java version details in the Programs and Features, where all the installed programs will be listed. Most of the programs will have their version number or name listed in the Program and Features. Follow the below steps to try it out:

    1. Hold the Windows key and press R to open the Run. Now type ‘appwiz.cpl‘ and click on the Ok button.
    2. This will open the Program and Features window of the control panel. Search for Java in the list. You will be able to see the version detail with it.
    3. Almost all of the programs will have their version detail in Program and Features window.

    Checking Java Version in macOS

    Checking Java Version in macOS through Terminal

    The Terminal application allows the user to control the system by using a command prompt. It is quicker to find the result with just a single command. Finding the Java version through Terminal is pretty easy. Follow the below steps to find your Java version through Terminal:

    1. Hold Command and press Space key to open Spotlight, then type Terminal to search and press Enter.
    2. Now type the following command to check the Java version on your system.

  • It will show the result of the Java version with details.
  • Checking Java Version in macOS through Java Control Panel

    Just like in the Windows operating system, macOS also have System Preferences which is similar to the control panel. The user can find the Java control panel in their System Preferences window. There is an about button which will show the details and the version of the installed Java. Check the below steps to try it out.

    1. Click on the Apple logo in the menu bar at the top and choose the System Preferences option. Now click on the Java icon at the bottom.
    2. A Java Control Panel window will appear, click on the About button and it will show the version details of the Java.

    Источник

    How to Determine Java Version

    This article was co-authored by Yaffet Meshesha. 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.

    This article has been viewed 392,802 times.

    Multiple copies of Java can be installed on a single computer, and, if you have more than one browser, every one of them could be using a different version or none at all. You can determine your Java version by verifying it on the Java website, or you could check using the Windows command prompt, Mac terminal, or Linux terminal.

    Verifying Online

    Image titled Determine Java

    Open a new window in your web navigate to Java’s website. Oracle, the makers of Java, have provided an easy page that will check your Java installation and report the exact version you’re running. This can be done from any operating system.

    Image titled Determine Java

    Image titled Determine Java

    Image titled Determine Java

    After a few seconds, check the results! This will include the Version number as well as the Update number. The version number is most important if you’re checking for compatibility with other programs.

    Windows

    Image titled Run window empty.png

    Image titled Run window with cmd.png

    Image titled Windows cmd blank.png

    Wait for a black window with white text to appear on your screen. This is called a «console window.»

    Image titled Windows cmd java version command small.png

    Image titled Windows cmd java version command output small.png

      You can tell what version of Java you have by looking at the number after the «1.» in the first line of the console output. In this example, the user has Java 8 installed.

    Image titled Windows cmd java version command output version highlighted.png

    Image titled Determine Java

    Mac OSX

    Image titled Determine Java

    Image titled Determine Java

    Image titled Determine Java

    With Utilities open, open the Terminal and type in «java -version», then retrieve the current java version.

    Linux

    Image titled Determine Java

    • This should return something like Java(TM) 2 Runtime Environment, Standard Edition (build 1.6) If it returns
      -bash: java: command not found
      This means that either it is not installed or you haven’t set up your paths properly

    Image titled Determine Java

    • With Firefox 3 go to Tools Add-ons button and go to the Plug-ins tab.
    • With Firefox 2 or 3: In Firefox versions 2 and 3, enter in the address bar: about:plugins. If Java is installed there will be multiple Java entries.
    • With Internet Explorer 7 or 8 go to Tools select Internet Options in the General tab click on the Browsing History Settings button and select the View Objects button right click on an ActiveX control and get its properties. Each ActiveX control has a «code base» and for each of the Java entries it will display the version number.

    Expert Q&A

    You Might Also Like

    Add JARs to Project Build Paths in Eclipse (Java)

    Check Your Java Version in the Windows Command Line

    Use Easy Windows CMD Commands to Check Your Java Version

    Set Java Home

    How to Set JAVA_HOME for JDK & JRE: A Step-by-Step Guide

    Do Division in Java

    How to Do Division in Java (Integer and Floating Point)

    Compile and Run Java Program by Notepad

    How to Compile and Run Java Programs Using Notepad++

    Compile & Run Java Program Using Command Prompt

    Calculate Percentage in Java

    Check Null in Java

    Install Java in Ubuntu Using Terminal

    Program in Java

    Create an Executable File from Eclipse

    Update Java

    Call a Method in Java

    Print Double Quotes in Java

    Simple Steps to Type a Bunny with Your Keyboard

    Источник

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